div-stroke

Stroke.

Parameters

Parameters Description
color

string

Required parameter.

Stroke color.

Valid formats: #RGB, #ARGB, #RRGGBB, #AARRGGBB.

style

object

Stroke style. Supported for border stroke only.

The value has the type div-stroke-style.

Default value: {"type": "solid"}.

Available platforms: Android, iOS, web.

List of possible values:

  • div-stroke-style-solid
  • div-stroke-style-dashed
  • unit

    string

    Possible values: dp, sp, px.

    Default value: dp.

    width

    number

    Stroke width.

    Restriction for the value x: x >= 0.

    Default value: 1.

    JSON
    {
      color*: "string",
      style: div-stroke-style,
      unit: "string",
      width: "number"
    }