Search by

eminos / statamic-tabs

eminos

A Statamic addon to be able to group fields into tabs.

Package info

github.com/eminos/statamic-tabs

Language:JavaScript

Type:statamic-addon

pkg:composer/eminos/statamic-tabs

Fund package maintenance!

eminos

Statistics

Installs: 104 090

Dependents: 0

Suggesters: 0

Stars: 15

Open Issues: 0

v2.1.0 2026-12-01 13:47 UTC

This package is auto-updated.

Last update: 2026-12-01 14:57:49 UTC


README

Tabs 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: tabs only change how the form looks.

๐Ÿ“– Documentation ยท Getting started ยท Tab rows & nesting

An entry form split into tabs, with a nested row of tabs inside the Content tab.

Install

composer require eminos/statamic-tabs

Requires PHP 8.3+ and Statamic 6. Add a Tab field wherever a tab should start.

Statamic version Add-on version Branch
Statamic 3, 4, 5 1.x 1.x
Statamic 6 2.x main

Features

Tabs inside a Bard set

Anywhere you have fields
Entries, terms, globals, the sidebar, Replicator and Bard sets, Groups, stacked Grids and fieldsets. Field values are saved as usual, nothing is nested.
Where tabs work โ†’

Two separate rows of tabs on one form

Several tab rows
Start a new row of tabs anywhere, for example at the first tab of each imported fieldset.
Tab rows โ†’

A nested row of tabs inside a Content tab

Nested tabs
Put a row of tabs inside another tab. The next tab that isn't nested continues the outer row.
Nested tabs โ†’

Fields continuing below a row of tabs after a Tabs End field

End a row with Tabs End
A Tabs End field closes the current row, so the fields after it aren't swallowed by the last tab. Perfect at the end of a fieldset.
Tabs End โ†’

Tabs marked red because they contain fields with errors

Errors you can find
After a failed save, tabs that contain invalid fields turn red, also inside Replicator and Bard sets.
Conditions & validation โ†’

Tabs with icons

Icons and conditions
Give tabs a Statamic or Iconify icon, instructions, and show or hide them with conditions like any other field.
Icons โ†’

Usage

Add a Tab field where a tab should start. Every field after it belongs to that tab, up to the next Tab field. Add a Tabs End field to stop the tabs and show the following fields normally again.

-
  handle: content_tab
  field:
    type: tab
    display: Content
-
  handle: body
  field:
    type: bard
-
  handle: seo_tab
  field:
    type: tab
    display: SEO
    tab_icon: magnifying-glass
-
  handle: meta_title
  field:
    type: text
-
  handle: tabs_end
  field:
    type: tabs_end

Fieldsets can bring their own tabs. Set an option per import with Statamic's import config:

-
  import: button
  config:
    button_tab:
      tab_new_row: true

Every option is in the configuration reference. See also troubleshooting and the changelog & upgrade guide.

Development

npm run build        # build the add-on assets into dist/
npm run docs:dev     # docs site (VitePress, in docs/); run `npm --prefix docs install` once first

License

The MIT License (MIT). Please see License File for more information.

Made with fruit by kiwikiwi.