Tab List

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.

Attribute Type Default Description
tabs array [] Source: query. Selector: button

Supports

Defined via the supports property in block.json.

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
  • spacing:
    • padding: .wp-block-tab-list button

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