buttonVariant
A set of flags that determine the button’s (internal) visual style.
buttonVariant: Record<string, boolean | undefined>;
Notes
- The variant can be set using
UI.Button()builder methods, e.g. ghost(). Setting custom variants directly using buttonVariant() is possible, but not encouraged. - When updating the variant at runtime, always set this property to a new object rather than mutating the existing object.
Related
class UIButton
A view class that represents a button control.
