Shadows Interface
Shadow attributes can be passed via style prop to the Block
component.
Prop Name | Type | Description |
---|---|---|
color | string | The color of the shadow, defined as a hex string or color name. |
opacity | number | Opacity level of the shadow, with 0 being fully transparent and 1 fully opaque. |
offset | [number, number] | Array specifying the horizontal and vertical offset of the shadow. |
radius | number | The blur radius of the shadow, where higher values create a softer shadow. |