Skip to content

Function: removeStyle() ​

ts
function removeStyle(id): void;

Remove a <style> element previously injected via injectStyle. No-op if the element does not exist.

Parameters ​

ParameterTypeDescription
idstringThe id attribute of the <style> element to remove.

Returns ​

void

Example ​

ts
removeStyle('theme-root')

Since ​

1.3.0

Released under the MIT License.