slot

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

slotグローバル属性で、シャドウ DOM のシャドウツリー内にあるスロットを、ある要素に割り当てます。 slot 属性をもつ要素には、 <slot> 要素に name 属性の値を指定することで生成されたスロット の値がその slot 属性の値と一致する生成されたスロットに割り当てられます。

例については、テンプレートとスロットの使用ガイドを参照してください。

仕様書

Specification
HTML
# attr-slot
DOM
# ref-for-dom-element-slot①

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
slot

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報