Set variable modes on a style
style.setVariableModes(props, options?)
Apply multiple variable modes to a style. Each variable mode is associated with 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 - The breakpoint and pseudo state for the style.
Returns
Promise<null
>
A Promise that resolves to null
.