Object

ComponentShadow

The object for creating a component shadow.

Properties

color
(Required)

The component shadow color.

(Required)

The shadow’s radius.

The shadow’s offset.

opacity
float

The opacity of the shadow as a value between 0 and 1.

Discussion

Use a ComponentShadow object to define a shadow that can be applied to components as part of ComponentStyle.

Example

{ "componentStyles": { "exampleStyle": { "backgroundColor": "#FFF", "shadow": { "color": "#33333350", "opacity": 0.33, "radius": "10cw", "offset": { "x": 2, "y": "10cw" } } } }}

See Also

Component Effects

object ComponentShadowOffset

The object for setting an offset value to use with a component shadow.