extend
Creates a new subclass that includes the original styles as well as new styles.
static
static extend<TDefinition>(this: UIStyle.Type<TDefinition>, ...styles: Readonly<UIStyle.StyleSelectorList<TDefinition>>): typeof this
Parameters
- styles — A list of style definitions to be added to the extended style; this may include multiple objects with different state options (see StyleStateOptions).
Return value
A subclass of UIStyle that includes the specified styles
Related
- class UIStyleA class that defines a set of styles that can be applied to UI components.