ComponentShadow
The object for creating a component shadow.
Declaration
object ComponentShadowProperties
| Name | Type | Description |
|---|---|---|
color Required | Color | The component shadow color. |
radius Required | (SupportedUnits | number) | The shadow’s radius. |
offset | ComponentShadowOffset | The shadow’s offset. |
opacity | float | The opacity of the shadow as a value between |
Discussion
Use a ComponentShadow object to define a shadow that you can apply to components as part of ComponentStyle.
Example
{
"componentStyles": {
"exampleStyle": {
"backgroundColor": "#FFF",
"shadow": {
"color": "#33333350",
"opacity": 0.33,
"radius": "10cw",
"offset": {
"x": 2,
"y": "10cw"
}
}
}
}
}