Skip to content

Configuration reference ​

The add-on has no config file. Everything is set per field in the blueprint editor (or in YAML).

Tab ​

type: tab. Starts a tab. Every field after it belongs to this tab, up to the next Tab or Tabs End field. It stores no value.

The Tab field settings: Tab Icon, Tab Iconify Icon, Start a new tab row and Nested tabThe Tab field settings: Tab Icon, Tab Iconify Icon, Start a new tab row and Nested tab

The add-on's settings for a Tab field. Tab Iconify Icon only shows with the Iconify add-on installed.
SettingYAML keyTypeDefaultNotes
Tab Icontab_iconStatamic icon namenoneShown before the label.
Start a new tab rowtab_new_rowbooleanfalseStarts a separate row of tabs here.
Nested tabtab_nestedbooleanfalsePuts the tab in a row inside the preceding tab.
Tab Iconify Icontab_iconify_iconIconify name, e.g. mdi:instagramnoneOnly with statamic-iconify. Overrides Tab Icon.

Tab Icon: an icon from Statamic's icon set, see Icons.

Start a new tab row: start a new row of tabs instead of adding this tab to the row above. Useful as the first tab of an imported fieldset. On a nested tab, it starts a second nested row inside the same outer tab. See Tab rows.

Nested tab: show this tab in a row inside the preceding (non-nested) tab. The next tab that isn't nested continues the outer row. Ignored when there is no tab before it. See Nested tabs.

Tab Iconify Icon: an icon from Iconify. When set, it's shown instead of the Tab Icon.

Standard settings that matter ​

SettingYAML keyWhat it does for a tab
DisplaydisplayThe tab's label. Falls back to the handle. Passed through Statamic's translator.
HandlehandleMust be unique in the blueprint, like any field. Also used to remember the selected tab.
InstructionsinstructionsShown under the tab bar while this tab is open. Markdown is supported. See Instructions.
Conditionsif, unless, if_any, unless_anyShow or hide the tab and all its fields. See Conditions.

Width, validation, localizable and similar settings have no effect on a Tab field.

Example ​

yaml
- handle: shipping_tab
  field:
    type: tab
    display: Shipping
    instructions: 'Used to calculate shipping costs at checkout.'
    tab_icon: package-box-crate
    tab_new_row: false
    tab_nested: false
    if:
      product_type: 'equals physical'

Tabs End ​

type: tabs_end. Ends tab rows. It renders nothing in the publish form, stores no value and can't be validated or localized. It's listed in the Special category of the field picker.

SettingYAML keyTypeDefault
End all tab rows (including nested)end_allbooleanfalse

End all tab rows (including nested):

  • Off: ends only the innermost row. Inside a nested tab row, the fields after this continue in the parent tab. In a top-level row, they appear outside the tabs.
  • On: ends the nested row and the outer row at once, so the fields after this appear outside all tabs.

See Tabs End.

yaml
- handle: end_tabs
  field:
    type: tabs_end
    end_all: true

Fieldset import overrides ​

Statamic's config on an import overrides settings of the imported fields, keyed by their handle in the fieldset:

yaml
- import: button
  prefix: hero_
  config:
    button_tab:          # the handle in the fieldset, without the prefix
      tab_new_row: true
      tab_icon: link

See Fieldsets with tabs.

Released under the MIT License. Made with fruit by kiwikiwi