Skip to content

Icons & instructions ​

Statamic icons ​

Pick an icon in the Tab Icon setting (tab_icon). It uses Statamic's icon picker, so every icon the control panel uses is available. The YAML value is the icon's name:

yaml
- handle: media_tab
  field:
    type: tab
    display: Media
    tab_icon: media-image-picture-gallery

Tabs with icons: Content, Media, Shipping and SEOTabs with icons: Content, Media, Shipping and SEO

Some icons used in these docs: text-formatting-paragraph, media-image-picture-gallery, package-box-crate, search-magnifying-glass, money-cashier-price-tag, cursor-click, palette, cog, globe-world-wide-web.

Iconify icons ​

With the Iconify add-on installed, the tab settings get a Tab Iconify Icon field (tab_iconify_icon) to search more than 200,000 icons. When it's set, it is used instead of the Tab Icon.

bash
composer require eminos/statamic-iconify
yaml
- handle: social_tab
  field:
    type: tab
    display: Social
    tab_iconify_icon: 'mdi:instagram'

A Site settings global with Company, Contact and Social tabs. Social has an Instagram icon from Iconify.A Site settings global with Company, Contact and Social tabs. Social has an Instagram icon from Iconify.

If you remove the Iconify add-on later, also clear the Tab Iconify Icon settings, otherwise those tabs show no icon at all.

Instructions ​

A Tab field's Instructions are shown under the tab bar while that tab is open. Use them for a hint that applies to all fields in the tab. Markdown and links work, and links open in a new browser tab.

yaml
- handle: media_tab
  field:
    type: tab
    display: Media
    instructions: 'The first image is used as the product thumbnail.'

The Media tab is open, and the text "The first image is used as the product thumbnail." is shown under the tab barThe Media tab is open, and the text "The first image is used as the product thumbnail." is shown under the tab bar

Labels ​

The tab label is the field's Display name, or its handle if there is none. Labels go through Statamic's translator, so a lang/sv.json entry like "Media": "Bilder" translates the label in a Swedish control panel.

Released under the MIT License. Made with fruit by kiwikiwi