registerStyles
external fun registerStyles(themeFor: String?, styles: CssResult, options: RegisterStylesOptions = definedExternally)
Registers CSS styles for a component type. Register the styles before the first instance of the component is attached to the DOM.
Parameters
themeFor
the tag name the styles apply to, or null for global styles.
styles
the CSS rules to register.
options
registration options, for example { moduleId: "my-theme" }.
external fun registerStyles(themeFor: String?, styles: Array<CssResult>, options: RegisterStylesOptions = definedExternally)
Registers several CSS results for a component type. Register the styles before the first instance of the component is attached to the DOM.
Parameters
themeFor
the tag name the styles apply to, or null for global styles.
styles
the CSS rules to register.
options
registration options, for example { moduleId: "my-theme" }.