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.

Adding a Shadow Component

  • Select the Shadow component from the Components drawer. You can open the list of components by clicking the + button next to Components.
  • Select the added component in the Components tree.
  • Select an Image, Image Background or any other component you want to display as children of the Shadow component to have a shadow around it.
    Go to the Config tab (second tab) in the Properties panel and update the prop per your requirements of shadowing around the child component.

Style Properties

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.

Configuration Properties

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.
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

Data Properties

Conditional Display

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