@serenity-is/corelib / ShadowRootNode

Function: ShadowRootNode()

ShadowRootNode(options): any

Defined in: ../domwise/dist/index.d.ts:2434

Creates a virtual node descriptor for a ShadowRoot that can be used during JSX element creation. The returned object is recognized by the JSX factory to create a shadow root on the parent element.

Parameters

options

ShadowRootInit & object

An object with ShadowRootInit properties plus optional ref and children.

Returns

any

A virtual node descriptor recognized by the JSX factory.