Creates a slot element with a specified name
Utility for creating HTML slot elements for use in Shadow DOM components.
The name attribute for the slot
HTMLSlotElement with the specified name
const headlineSlot = createSlot('headline');shadowRoot.appendChild(headlineSlot); Copy
const headlineSlot = createSlot('headline');shadowRoot.appendChild(headlineSlot);
Creates a slot element with a specified name
Utility for creating HTML slot elements for use in Shadow DOM components.