Skip to main content

Shadows Interface

Shadow attributes can be passed via style prop to the Block component.

Prop NameTypeDescription
colorstringThe color of the shadow, defined as a hex string or color name.
opacitynumberOpacity 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.
radiusnumberThe blur radius of the shadow, where higher values create a softer shadow.