Border properties

Borders are only applicable to RectanglePrimitive, ImagePrimitive. They allow to display a border around the rectangle. You can interact with radius, color and width.

Properties

  • borderWidth
  • borderRadius
  • borderColor

borderWidth

TypeDefault valueSupported value
number0Not applicable

Describes the stroke of the border in pixels.

Note

Border is inset, border width is calculated within width.

Example: rectangle with width 100 and borderWidth 20 will have real width equals to 100 and shape colored by fillColor will be 60px width (width - 2 * borderWidth)

borderRadius

TypeDefault valueSupported value
number0Not applicable

Describes the size of the circle radius in pixels. Border radius can be used without borderWidth.

borderColor

TypeDefault valueSupported value
stringnullNot applicable

Describes the border color using format defined in theme