Skip to main content

$isShadowRootNode

function

Returns true if the given node is an ElementNode whose isShadowRoot() returns true.

function $isShadowRootNode(node: null | LexicalNode): node is ShadowRootNode

Import

import { $isShadowRootNode } from '@modular/sdk/editor';