Tab

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.

Context

Defined via the usesContext and providesContext properties in block.json.

Uses context:

  • core/tabs-list
  • core/tabs-activeTabIndex
  • core/tabs-editorActiveTabIndex
  • core/tab-index
  • core/tab-id
  • core/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