@microsoft/fast-element > HostController > addStyles
HostController.addStyles() method
Adds styles to this element. Providing an HTMLStyleElement will attach the element instance to the shadowRoot.
Signature:
addStyles(styles: ElementStyles | HTMLStyleElement | null | undefined): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
styles |
ElementStyles | HTMLStyleElement | null | undefined |
The styles to add. |
Returns:
void