Remove variable modes
style.removeVariableModes(props, options)
Remove multiple variable modes from a style. Each variable mode is associated with a variable collection. To remove multiple variable modes, provide an array of variable mode objects.
Syntax
Parameters
-
modes: Array<VariableMode> - An array of variable modes to remove. -
options?: BreakpointAndPseudo - An object t hat 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.