Components
Tabs
Section navigation for peer views of one object. A shared pill slides between items; the selected panel follows immediately.
Applicant name, reference number and submission date.
Usage
Two to five peer views of the same record.
Do and don't
- Do. Share one idPrefix between the list and its panels.
- Don't. Use them for steps in a transaction or page-level navigation.
Composition
Tabs owns the tab list; TabsItem is one tab. TabsPanel is rendered outside the root and links back through a shared idPrefix. Keep the prefix unique per instance on a page.
Props
Tabs: controlledselectedIndex+onSelect,idPrefix,activeLabel,size.TabsItem:index, requiredlabel, optionalicon.TabsPanel:index,selectedIndex,idPrefix.
Behavior and states
The active pill and any collapsing label animate on selection. With activeLabel, only the selected tab shows its text, so every item needs an icon. Panels render only for the selected index; there is no hidden panel left in the tab order.
Accessibility
Base UI provides the tablist, tab and tabpanel roles and arrow-key movement. The panel stays associated with its tab through the shared prefix even though it is rendered outside the root. Keep tab labels short and meaningful; do not nest a tab inside another interactive control.
Responsive
activeLabel is the compact form for narrow panels. The list follows the shared size context; set size on the root to pin a region to the 28px step.
Related
Breadcrumb shows where you are, Table holds ledgers, and Layout & Spacing covers the size ladder these tabs inherit.