Get Selected Slot (Beta)
Get Selected Slot (Beta)
Get Selected Slot (Beta)
element.getSelectedSlot()Returns the slot that is currently selected in the Designer on a component instance, or null if no slot is selected.
Use this to read the active slot context before appending or inspecting its children.
These methods are in public beta and may change with future releases.
Promise<SlotInstanceElement | null>
A Promise that resolves to the selected SlotInstanceElement, or null if no slot is currently selected.