Function: removeStyle()
ts
function removeStyle(id): void;Remove a <style> element previously injected via injectStyle. No-op if the element does not exist.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The id attribute of the <style> element to remove. |
Returns
void
Example
ts
removeStyle('theme-root')Since
1.3.0