Repository navigation
Feature Grouped Tabs
tempus2016 edited this page Oct 27, 2026
·
1 revision
A tab can hold its own tabs. Give it children: (a list of ordinary tabs) instead of a card.
The children appear as a compact second row of tabs under the bar.
- name: Climate
icon: mdi:thermostat
children:
- { name: Downstairs, card: { ... } }
- { name: Upstairs, card: { ... } }
With children_display: menu the parent tab gets a ▾ and opens a menu of its children. Picking one opens it, and the parent tab's subtitle shows which child is open. The menu supports the keyboard: Enter/Space opens it, ↑ ↓ move, Esc closes.
- name: Rooms
icon: mdi:floor-plan
children_display: menu
children:
- { name: Kitchen, icon: mdi:fridge, card: { ... } }
- { name: Lounge, icon: mdi:sofa, card: { ... } }
- { name: Garage, icon: mdi:garage, card: { ... } }
-
children: a list of tabs. Each child supports every normal tab option (visibility,badge,cards, …). -
children_display:row(default) ormenu. -
children_options: any Tabdeck card options for the inner deck, merged over the compact defaults (style: text, 36px tabs). For example,children_options: { style: pill, remember: browser }.
A grouped tab is a nested Tabdeck deck under the hood, so everything a deck can do works inside a group. In the visual editor, Edit card on a grouped tab opens the inner deck's editor, and your changes are saved back to children.
-
hide_bar: truerenders only the content, with no tab bar. The menu mode uses it, and it's handy for a deck that's driven byremember: entity,auto_selector a script. - Every Tabdeck card exposes
selectTab(nameOrIndex)(returnstrue/false; names match exactly or by slug, e.g.living-room) andselectedTab(the active tab's name). It also fires atabdeck-tab-changedevent (detail: { index, name, deck }, bubbling and composed) whenever the active tab changes. Use these from browser_mod, custom cards or your own JavaScript.
Concepts
Features
- All features
- Dynamic tabs
- Remote control & events
- PIN-locked tabs
- State-driven icons & names
- Alert pulse
- Auto-rotate & idle return
- Navigation & action tabs
- Scroll-spy
- Collapsible deck
- Responsive layouts
- Style presets
- Tab-change actions
- Tab display mode
- Accent indicator
- Extra bar styles
- Indicator thickness
- Sticky tab bar
- Tab alignment
- Badge display mode
- Per-tab colour
- Tab subtitles
- Disabled tabs
- Multiple cards per tab
- Panel transitions
- Content layout
- Duplicate tab
- Expand/Collapse all
- Edit mode helpers
- Why is this tab hidden?
- Starter templates
- Convert from another card
- Languages
- Dock & floating action tabs
- Dots & content arrows
- Grouped tabs
- Search & shortcuts
- Arrange tabs