Shadow style properties
Shadows are only applicable to ImagePrimitive and RectanglePrimitive. They allow to display a drop shadow that you can position compared to your primitive itself.
Properties
shadowRadiusshadowColorshadowXOffsetshadowYOffset
shadowRadius
| Type | Default value | Supported value |
|---|---|---|
| number | null | Not applicable |
Describes the spread radius of the shadow.
The larger this value, the bigger the blur, so the shadow becomes bigger and lighter. 0 will make the shadow to not display any blur and will be sharp.
Caution
Negative values are not allowed.
shadowColor
| Type | Default value | Supported value |
|---|---|---|
| string | null | Not applicable |
Describes the color of the shadow using format defined in theme.
shadowXOffset
| Type | Default value | Supported value |
|---|---|---|
| number | null | Not applicable |
Describes the vertical offset in pixels to position the shadow compared to the primitive itself. Value can be positive or negative.
shadowYOffset
| Type | Default value | Supported value |
|---|---|---|
| number | null | Not applicable |
Describes the horizontal offset in pixels to position the shadow compared to the primitive itself.
Value can be positive or negative.