Remove a style property
style.remove(prop, options?)
Remove a single style-property from a Style object.
Syntax
Parameters
-
prop: StyleProperty - The name of the property to remove from the style. See the Style Properties reference for a list of supported properties. -
options: StyleOptions - An object that filters properties by breakpoint, pseudo-state, and/or variant. (Optional)-
breakpoint: BreakpointId - Identifies the responsive breakpoint to remove the property from. -
pseudo: PseudoStateKey - Specifies a CSS pseudo-class to remove the property from. -
variantId: string - The ID of the variant to target.'base'is not a valid value. (Optional)
-
Returns
Promise<void>
A Promise that resolves to undefined