Set variable modes on a style
style.setVariableModes(props, options?)
Apply multiple variable modes to a style. Each variable mode belongs to a variable collection. To apply multiple variable modes, you must provide a map of variable collection IDs to their corresponding variable mode IDs.
Syntax
Parameters
-
props: VariableModeStylePropertyMap - A map of variable collection IDs to their corresponding variable mode IDs.
VariableModeStylePropertyMap -
options?: BreakpointAndPseudo - An object that lets you filter properties by breakpoint and/or pseudo-state. (Optional)
-
BreakpointId: Identifies the responsive breakpoint to get styles for. -
PseudoStateKey: Specifies a CSS pseudo-class to get styles for.
-
Returns
Promise<null>
A Promise that resolves to null.