Menu Close

Tabs block

The Blocksify Tabs block organizes content into tabbed panels with labels, optional icons, subtitles, positions, and tab styling. It auto-creates Tab child blocks for panel content, and the parent owns the tab metadata.

At a glance

Parent blockblocksify/tabs
Child blockblocksify/tab
Default insertionCreates 3 Tab children and opens the first tab.
Tab positionsTop, right, bottom, and left.
Tab detailsLabels, subtitles, icons, and tab anchors are edited from the Tabs parent.
Key supportsParent visibility, responsive tab layout, tab icons, subtitles, tablist styling, tab styling, active-tab styling, tab-content styling, and child panel controls.

Where to find it

  1. Select the Tabs parent block on the canvas.
  2. Use General for tab position, width, gap, spacing, overflow, distribution, alignment, and default active tab.
  3. Select a Tab child when one panel needs its own color, background, spacing, border, size, or overflow treatment.
The Tabs parent General panel shows tab position, overflow, width, alignment, gap, and default active tab controls.

When to use it

Use Tabs when several related panels should share one visible area and visitors need to switch between them. Each Tab child can hold arbitrary inner blocks, so panels can contain text, media, layout blocks, or other content.

Wrap Tabs in a Section block when the tabbed area needs a larger page-band layout or full-bleed treatment.

For a search results page with tabs for different post types, see the Search Kit overview. Search Tabs needs Blocksify Pro.

Parent and Tab child structure

Tabs is a locked parent-child pair. The parent allows only Tab children, and each Tab child is the panel that holds the visitor-facing content.

List View shows a Tabs parent with three Tab children while the active panel appears on the editor canvas.
SurfaceWhat it owns
Tabs parentActive tab state, title entries, labels, subtitles, icons, tab anchors, tab layout, and shared tab styling.
Tab childPanel content plus optional per-panel color, background, spacing, border, size, and overflow controls.
ToolbarMove, add, duplicate, delete, and icon-pick actions for the active tab.

Labels, subtitles, and icons

Tab labels and subtitles are edited inline on the tablist and saved with the Tabs parent. Subtitle fields appear only when Subtitle is enabled.

Tab icons are enabled by the parent Icon panel. Choose Lucide icons from the picker, paste custom SVG code, or upload a custom icon.

The Tabs toolbar icon picker is open while the active tab shows a label, subtitle, and icon in the tablist.
Icon controlWhat it changes
PositionLeft, top, or right placement inside every tab.
Vertical AlignmentTop, center, or bottom alignment when the icon is left or right.
Icon SizeResponsive icon dimensions.
Icon GapResponsive spacing between the icon and tab text.

Position and device behavior

Tab Position can be top, bottom, left, or right. Top and bottom render a horizontal tablist, while left and right render a side rail beside the active panel.

Layout values use Tablet and Mobile suffixes and inherit until a smaller device overrides them. If a left or right rail reaches Mobile with no explicit Mobile Tab Position, Blocksify auto-collapses it to top plus stack at the mobile breakpoint; Tablet is unaffected.

ControlWhat it controls
Tab List WidthSide-rail width for left and right positions.
Tab GapSpacing between the tablist and content.
Tab SpacingSpacing between tab buttons, including wrapped rows.
Tab Width and AlignDistribution and alignment for top or bottom tab strips.
Tab OverflowScroll, wrap, stack, or carousel behavior for top or bottom strips.

Carousel overflow uses decorative edge chevrons that page one tab at a time. The chevrons are not in the tab order because the keyboard can already reach every tab.

Frontend accessibility behavior

On the frontend, the tablist uses role="tablist", tabs use role="tab", and panels use role="tabpanel". The active tab updates aria-selected, panel visibility, and roving tabindex. The active panel is visible as soon as the page loads, before any script runs.

The Interactivity API handles click activation and keyboard navigation. Horizontal tablists use Left and Right arrow keys; vertical tablists use Up and Down; Home and End move to the first or last tab.

Style capabilities

The parent uses styling sections for repeated tab surfaces. The child Tab keeps its own visual controls for cases where one panel needs a different style.

The Tabs Styling panel shows sections for Tab List, Tab, Tab Active, and Tab Content styling.
Panel or sectionWhat it controls
Tabs Styling: Tab ListThe tablist wrapper.
Tabs Styling: TabEach tab button surface.
Tabs Styling: Tab ActiveThe active tab state, seeded with an editable background tint and radius.
Tabs Styling: Tab ContentThe shared panel content surface.
SubtitleSubtitle text styling when subtitles are enabled.
Icon and Icon ActiveIcon styling when icons are enabled.
Tab child controlsPer-panel color, background, spacing, border, size, and overflow.

Tips

  • Keep labels short when using top or bottom strips with many tabs.
  • Use stack overflow on smaller screens when a horizontal strip would hide too many tabs.
  • Use the parent Tabs Styling slices for the shared look, then select a Tab child only when one panel needs a unique style.
  • Use toolbar move, add, duplicate, and delete actions so titles and child panels stay in sync.

Was this helpful?

0

Updated