You're viewing documentation for Draftbit Classic (v1), our previous
platform. See the current Draftbit docs.
Surface
A Surface component is a type of View that is used to provide elevation to its child component(s).
How to use
Section titled “How to use”Go to the Configs tab and select a value for the Elevation property.
Style Properties
Section titled “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
Section titled “Configuration Properties”| Property | Description |
|---|---|
| Component Name | To alter the name of the component. The name is reflected in the Components tree. Defaults to Surface. |
| Elevation | Set an elevation on the component. |
Data Properties
Section titled “Data Properties”Conditional Display
Section titled “Conditional Display”You can conditionally display a component based on a given condition. Learn more about conditionally displaying components in the Conditional Display doc.