Tab Panel


目录


Content for a tab in a tabbed interface.

Block Relationships

Parent blocks (direct):
– core/tab-panels

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
label string "" —

Supports

Defined via the supports property in block.json.

Context

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

Uses context:

Provides context:

Block Markup

This is a hybrid block. It saves static markup that the server may enhance during rendering.

<!-- wp:tab-panel {"label":"Tab 1"} -->
<section role="tabpanel" tabindex="0" class="wp-block-tab-panel"><!-- wp:paragraph -->
<p>Panel 1</p>
<!-- /wp:paragraph --></section>
<!-- /wp:tab-panel -->

Source


版本号 #2
由 壳壳虫 创建于 2026-10-31 18:30:17 UTC
由 壳壳虫 更新于 2026-10-31 18:30:18 UTC