A Surface component is used to provide elevation on its child component.

Adding a Surface component

  • Select the Surface component from the Components drawer. You can open the list of components by clicking the + button next to Components.
  • In the Styles tab (first tab) in the Properties Panel, select a Background color.
  • Then, go to the Configs tab (second tab) and select a value for the Elevation property.

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 NameTo alter the name of the component. The name is reflected in the Components tree. Defaults to Surface.
ElevationSet an elevation on the component.

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.