Get style properties
style.getProperties(options?)
Retrieves the CSS properties of the specified Style Object. Additionally, you can get properties on a style for a specific breakpoint or pseudo-state.
See the style properties list for an index of CSS properties to set on a style.
Syntax
Parameters
-
options: StyleOptions - An object that filters properties by breakpoint, pseudo-state, and/or variant. (Optional)-
breakpoint: BreakpointId - Identifies the responsive breakpoint to get styles for. -
pseudo: PseudoStateKey - Specifies a CSS pseudo-class to get styles for. -
variantId: string - The ID of the variant to target.'base'is not a valid value. (Optional)
-
Returns
Promise<PropertyMap>
A Promise that resolves to a PropertyMap object. A dictionary of style properties and their values.
Example
Designer ability
Checks for authorization only