Docs (4.0.0)
Themes and colors

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

Instance Members

  • type readonlyThe UI component class that the variant will be used with, e.g. UIButton.
  • preset readonlyThe properties, bindings, and event handlers that will be preset on each object created with this variant.