<slot>Baseline · Widely available
The <slot> HTML element is a placeholder inside a web component where consumers of the component can insert their own markup.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jan 15, 2020. Widely available since Jul 15, 2022.
Browser support
DesktopChrome
1–52Not supported
53+Supportedsince Aug 31, 2016
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–62Not supported
63+Supportedsince Oct 23, 2018
Current: 157Safari
1–9.1Not supported
10+Supportedsince Sep 20, 2016
Current: 27MobileChrome Android
18–52Not supported
53+Supportedsince Sep 7, 2016
Current: 155Firefox Android
4–62Not supported
63+Supportedsince Oct 23, 2018
Current: 157Safari iOS
1–9.3Not supported
10+Supportedsince Sep 13, 2016
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: assignedSlot.
Feature detection
JS · check before using
if ("Element" in globalThis && "slot" in Element.prototype) {
// Element.slot is available
}Sub-features
Support for each part of the feature (12). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| Element.assignedSlot | 53 | 79 | 63 | 10 | 53 | 63 | 10 |
| Element.slot | 53 | 79 | 63 | 10 | 53 | 63 | 10 |
| HTMLSlotElement | 53 | 79 | 63 | 10 | 53 | 63 | 10 |
| HTMLSlotElement.assignedElements | 65 | 79 | 66 | 12.1 | 65 | 66 | 12.2 |
| HTMLSlotElement.assignedNodes | 53 | 79 | 63 | 10 | 53 | 63 | 10 |
| HTMLSlotElement.name | 53 | 79 | 63 | 10 | 53 | 63 | 10 |
| HTMLSlotElement.slotchange_event | 53 | 79 | 63 | 10.1 | 53 | 63 | 10.3 |
| Text.assignedSlot | 53 | 79 | 63 | 10 | 53 | 63 | 10 |
| slotted | 50 | 79 | 63 | 10 | 50 | 63 | 10 |
| slot | 53 | 79 | 63 | 10 | 53 | 63 | 10 |
| slot.name | 53 | 79 | 63 | 10 | 53 | 63 | 10 |
| slot | 53 | 79 | 63 | 10 | 53 | 63 | 10 |