Skip to content
You're viewing documentation for Draftbit Classic (v1), our previous platform. See the current Draftbit docs.

Shadow

A Shadow component lets you apply shadow around any components. It is very customizable and compatible with Android, iOS and Web. It’s not required to define its size: the shadow is smartly applied on the first render and then precisely reapplied on the following ones.

Nest the component(s) you want to display as children of the Shadow component to have a shadow around it.

Style properties allow you to customize the look and feel of the component. Combinations of styles applied to components can be saved as Stylesheets to easily reuse styles throughout your app. Styles can also be set dynamically using Variables. To learn more about all the different styling properties and how they work, take a look at Intro to Styling.

PropertyDescription
DistanceThe distance of the shadow.
Start ColorThe initial gradient color of the shadow.
End ColorThe final gradient color of the shadow.
Paint InsideApply the shadow below/inside the content.
StretchForce children to occupy all available horizontal space.
Offset XMoves the shadow in the X direction
Offset YMoves the shadow in the Y direction
PropertyDescription
Component NameAn optional descriptive name for the component. If the name is not “Shadow”, it will appear as a comment above this component in the generated code.

You can conditionally display a component based on a given condition. Learn more about conditionally displaying components in the Conditional Display doc.