Skip to content

Statamic 6 add-onTabs anywhere you have fields.

Add a Tab field to an entry, a sidebar, a Replicator or Bard set, a Group or a fieldset, and every field after it lands in that tab. Your data stays exactly where it was.

A product entry split into Content, Media, Shipping and SEO tabs, with a nested row of Description, Specifications and FAQ tabs inside Content, and Pricing and Stock tabs in the sidebar.A product entry split into Content, Media, Shipping and SEO tabs, with a nested row of Description, Specifications and FAQ tabs inside Content, and Pricing and Stock tabs in the sidebar.

Install

One composer command ​

Requires PHP 8.3+ and Statamic 6. Then add a Tab field wherever a tab should start. There is nothing to publish or configure.

bash
composer require eminos/statamic-tabs

Using Statamic 3, 4 or 5? Use the 1.x branch.

In your blueprint

A tab is just a field ​

Every field after a Tab field belongs to that tab, up to the next one. A Tabs End field shows the following fields normally again.

yaml
- handle: content_tab
  field: { type: tab, display: Content }
- handle: body
  field: { type: bard, display: Body }
- handle: seo_tab
  field: { type: tab, display: SEO, tab_icon: search-magnifying-glass }
- handle: meta_title
  field: { type: text, display: Meta title }
- handle: end_tabs
  field: { type: tabs_end }

See it in action

Only the form changes ​

Tabs only change how the form looks. Fields stay where Statamic put them, so values are saved, localized and validated exactly as before.

Built for real blueprints ​

Tab rows, nested tabs and conditions work together, in the main form and inside sets.

  • The selected tab is kept through Live Preview and follows Bard and Replicator sets when you reorder them.
  • Tabs with a condition appear and disappear as editors work.
  • Each localization can use its own blueprint.

Where tabs work →

A Bard set called Call to action with Content, Button, Style and Advanced tabsA Bard set called Call to action with Content, Button, Style and Advanced tabs

Bard and Replicator sets. Each set remembers its own tab.

The product's Content tab with a nested row: Description, Specifications and FAQThe product's Content tab with a nested row: Description, Specifications and FAQ

Nested rows. A row of tabs inside the Content tab.

Released under the MIT License. Made with fruit by kiwikiwi