removeStyles()

Removes style overrides from the selected component, reverting the specified properties to their manifest default values.

Syntax

Copy

Parameters

NameTypeDescription
values.cssPropertiesKeysstring[]Keys of the CSS properties to remove.
values.cssCustomPropertiesKeysstring[]Keys of the CSS custom properties to remove.

Returns

Promise<void>

Example

Copy

See also

Last updated: 8 September 2026

Did this help?