This block is experimental and may change or be removed without notice.
Display the tab buttons for a tabbed interface.
- Name:
core/tab-list - Category: design
- API Version: 3
- Block Type: Hybrid (static save + server enhancements)
Block Relationships
Parent blocks (direct):
– core/tabs
Attributes
Defined via the attributes property in block.json.
Supports
Defined via the supports property in block.json.
html:falseariaLabel:truevisibility:falselock:falsecolor:background:truetext:true
typography:fontSize:true
layout:default:{"type":"flex","flexWrap":"nowrap"}allowVerticalAlignment:falseallowOrientation:falseallowWrap:false
spacing:padding:trueblockGap:true
Context
Defined via the usesContext and providesContext properties in block.json.
Uses context:
core/tabs-list
CSS Selectors
Defined via the selectors property in block.json.
- border:
.wp-block-tab-list button - color:
- background:
.wp-block-tab-list button - text:
.wp-block-tab-list button
- background:
- spacing:
- padding:
.wp-block-tab-list button
- padding:
Block Markup
This is a hybrid block. It saves static markup that the server may enhance during rendering.
<!-- wp:tab-list {"tabs":[]} -->
<!-- Content... -->
<!-- /wp:tab-list -->
Source
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.