Skip to main content

$getSlotNames

function

Returns the names of this node's occupied slots, in insertion order. Empty when the node hosts no slots.

function $getSlotNames(node: LexicalNode): string[]

Import

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