Skip to content

StyleModule.mount method

StyleModule › mount

Unofficial

Mount style module(s) into a document or shadow root.

Signature:

mount(root: Document | DocumentOrShadowRoot | ShadowRoot, $module: StyleModule | readonly StyleModule[], options?: StyleModuleMountOptions): void

Parameters:

ParameterTypeDescription
rootDocument | DocumentOrShadowRoot | ShadowRootThe document or shadow root to mount into.
$moduleStyleModule | readonly StyleModule[]
options?StyleModuleMountOptionsOptional mount options.

Returns: void