The Tabs block allows you to organize content into easily navigable tabs. It uses a parent–child structure where the parent block is the Tabs container, and each child block is an individual Tab. You can insert any other blocks inside a Tab content area.

New Tab blocks can be added directly in the editor using the plus sign in the tab bar. Within each Tab block, you can add content — of any block type — using the plus icon inside that tab’s content area.

Screenshot of a tabs block added to the editor, with one tab already available.

Settings

Screenshot of the settings sidebar, explained in the following paragraphs.

In the Behavior section, you can select the transition animation used when switching between tabs. Options include:

  • No animation
  • Fade
  • Swipe horizontally
  • Move vertically

The block also supports Animations. In the Advanced section, you can find settings for HTML anchor, additional CSS classes, the Greyd Styles Class, toggles to hide the block per breakpoint and Inline Styling.

Styles

Screenshot of the Styles settings sidebar, explained in the following paragraphs.

In the Styles section, choose from predefined base styles configured in Global Styles. The available options are:

  • Classic
  • Chips
  • Primary button
  • Secondary button
  • Alternative button

In the Dimensions section, Core WordPress dimension controls allow you to set padding and margins for the entire Tabs block.

The Elements section provides separate style settings for Tabs and Content, see below for more details.

Screenshot of the Layout section of the Styles settings sidebar, explained in the following paragraphs.

In the Tabs section you can define the style for the clickable tabs bar.

Under Layout, you can align the tabs row left, center, right or with space in between the tabs. The Space Between setting below lets you fine-tune the space between each tabs with the Range Unit Control component. All settings can be adjusted per breakpoint.

Under Responsive behavior, you can enable Stack on mobile devices to arrange tabs vertically on smaller screens.

Under Icon you can choose the position of the icon relative to the tab text (left or right). Icons can be set individually for each Tab child block.

Under Colors you can set background and text colors for the tabs. Colors can also be set for hover and active states.

Under Typography you can set the following settings:

  • Font size
  • Font family
  • Appearance (font weight)
  • Letter spacing
  • Decoration
  • Letter case

Under Spaces you can set inner padding for each tab with the Range Unit Control component. The padding can also be adjusted per breakpoint.

Under Border Radius you can define rounded corners for tabs.

Under Border you can configure border settings for the tabs. The border can also be changed for hover and active states.

Under Shadow you can Add a drop shadow to tabs. For more details see the Drop Shadow Control component.

Screenshot of the Content section of the Styles settings sidebar, explained in the following paragraphs.

In the Content section, you can style the tab content area.

Under Colors you can set background and text colors for the tab content area.

Under Layout you can adjust width and alignment of the content. Alignment options are left, center, and right. Width can be set via the Range Unit Control component and all settings can be adjusted per breakpoint.

Under Spaces you can define padding for the tab content with the the Range Unit Control component and adjust it per breakpoint.

Under Border Radius you can define rounded corners for the content area.

Tab child block

Screenshot of the Tab child block settings sidebar, explained in the following paragraphs.

In the settings sidebar, each Tab child block includes a button to focus the parent Tabs block and a button to remove the selected tab.

Under Icon you can select an icon for the individual tab using the icon picker. You can set separate icons for the active state (when the tab is selected) and the inactive state (when the tab is not selected).

The block also supports Animations. In the Advanced section, you can find settings for HTML anchor, additional CSS classes, and toggles to hide the block per breakpoint.

Video

You are currently viewing a placeholder content from Vimeo. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.

More Information

Last updated: