Dynamic Styling
All of the style props on our components can be set dynamically by clicking on the prop label. In the tooltip, there's a section where you can select a variable or available fetch data. You can even apply a Transform Function!
The data icon next to the label indicates that the value is being set dynamically. If the data evaluates to undefined, the static value you've configured will be used instead (inline or Stylesheet).
In the example above, we're passing Device Variables set to strings of different Hex color values into various color props on some of the components.
Hex and RGB colors
Hex and RGB color values are allowed for color props.
Updated 10 months ago