div-border

Stroke around the element.

Parameters

Parameters Description
corner_radius

int

One radius of element and stroke corner rounding. Has a lower priority than corners_radius.

Restriction for the value x: x >= 0.

corners_radius

object

Multiple radii of element and stroke corner rounding.

The value has the type div-corners-radius.

has_shadow

bool_int

Adding shadow.

Default value: false.

shadow

object

Parameters of the shadow applied to the element stroke.

The value has the type div-shadow.

stroke

object

Stroke style.

The value has the type div-stroke.

JSON
{
  corner_radius: "int",
  corners_radius: {
    bottom-left: "int",
    bottom-right: "int",
    top-left: "int",
    top-right: "int"
  },
  has_shadow: "bool_int",
  shadow: {
    alpha: "number",
    blur: "int",
    color: "string",
    offset*: {
      x*: {
        unit: "string",
        value*: "number"
      },
      y*: {
        unit: "string",
        value*: "number"
      }
    }
  },
  stroke: {
    color*: "string",
    unit: "string",
    width: "number"
  }
}