class UIVariant
An object that includes predefined properties for a UI component.
class UIVariant<T extends UIComponent>
Notes
- UI component variants can be used with
ui
functions such asui.button(...)
, and in JSX tags for UI controls and containers. - Variants can only be used with a specific UI component class, e.g. UIButton.
- To create a new variant for a view composite instead, use ViewCompositeVariant.
Constructor
- constructor(type, preset)Creates a new UI component variant object.