This block is experimental and may change or be removed without notice.
A single tab button in the tab list.
- Name:
core/tab - Category: design
- API Version: 3
- Block Type: Hybrid (static save + server enhancements)
Block Relationships
Parent blocks (direct):
– core/tab-list
Attributes
Defined via the attributes property in block.json.
This block has no custom attributes.
Supports
Defined via the supports property in block.json.
html:falsereusable:falsevisibility:falselock:falsecolor:background:truetext:true
typography:spacing:padding:true
Context
Defined via the usesContext and providesContext properties in block.json.
Uses context:
core/tabs-listcore/tabs-activeTabIndexcore/tabs-editorActiveTabIndexcore/tab-indexcore/tab-idcore/tab-label
Block Markup
This is a hybrid block. It saves static markup that the server may enhance during rendering.
<!-- wp:tab -->
<!-- Content... -->
<!-- /wp:tab -->
Source
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.