Skip to main content

mountSlotContainer

function
function mountSlotContainer(editor: LexicalEditor, nodeKey: NodeKey, slotName: string, target: HTMLElement): HTMLElement | null

Import

import { mountSlotContainer } from '@modular/sdk/editor';

Notes

returns
the container, or null when the slot (or its DOM) does not exist yet — e.g. before the host's first reconciliation.