Skip to main content

$removeSlot

function

Removes the named slot from `host`, detaching its value (its slot up-link is cleared). No-op if the slot is empty. `host` is constrained to SlotHostNode so a non-host is rejected at compile time.

function $removeSlot<T extends LexicalNode & SlotHostNode>(host: T, name: SlotName<T>): T

Import

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