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 | undefined): void

Parameters:

ParameterTypeDescription
rootDocument | DocumentOrShadowRoot | ShadowRootThe document or shadow root to mount into.
moduleStyleModule | readonly StyleModule[]The style module(s) to mount.
options?StyleModuleMountOptions | undefinedOptional mount options.

Returns: void