Inject tag style into shadowRoot with content given as parameter to use CSS.
Import
1
import{ useCss }from"@atomico/hooks/use-css";
Copied!
Sintaxis
1
useCss(cssText:string);
Copied!
Example
WebComponents.dev
WebComponents.dev
Note
This hook was not created as a replacement for component.styles, it is rather a utility that seeks to facilitate the integration of css from a customHook, either by defining a state or another action.