eminos / statamic-tabs
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!
Requires
- php: ^8.3
- statamic/cms: ^6.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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
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
Anywhere you have fields |
Several tab rows |
Nested tabs |
End a row with Tabs End |
Errors you can find |
Icons and conditions |
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.