SideNav
Product side nav: brand header, icon items, optional badges, closeable; variant single (one column that closes to an icon rail) or rail-subnav (a fixed icon rail plus a SideNav.SubNav column with the picked parent's rows).
Switch between related views in place.
Switch between related views in place. Line by default, or segmented, in lg, md, and sm, horizontal or as vertical side tabs. Tabs can carry an icon and a count, and scroll or fold into a More menu when they don’t fit. Not DocsNav. Not RadioGroup. Not TabsList or TabsTrigger cousins.
Line tabs at medium size. Variants shows segmented, other sizes, vertical, icons and counts.
Use Tabs to switch related views in place. Keep labels short and avoid nesting tabs inside tabs.
Switch between related views in place. Line by default, or segmented, in lg, md, and sm; horizontal above the panel or vertical side tabs beside it. Tabs can carry an icon and a count, and scroll or fold into a More menu when they don't fit.
import { Tabs } from "agentic-ds-kit";From contracts/tabs.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| items | array | Yes | — | icon sits before the label. count renders as a neutral kit Count after the label and is part of the tab's name; never show a count by colour alone. |
| value | string | No | — | — |
| defaultValue | string | No | — | — |
| onChange | function | No | — | — |
| size | sm | md | lg | No | md | — |
| variant | line | segmented | No | line | segmented uses the SegmentedControl track: tray fill, 2px inset, thumb radius nested inside the track. Use segmented for values that change data inside one view; line for page or panel views. |
| overflow | scroll | more | No | scroll | scroll: one line that scrolls sideways when the tabs don't fit (touch, trackpad and arrow keys). more: the tabs that fit, then a More menu (kit DropdownMenu, KitLabels moreTabs) with the rest. The selected tab always stays in the row. |
| activation | automatic | manual | No | automatic | automatic: arrow keys select the tab they land on. manual: arrow keys move focus, Enter or Space selects. Use manual when a panel is slow to load. |
| orientation | horizontal | vertical | No | horizontal | horizontal: the tab list sits above the panel. vertical: side tabs, the list in a column on the start side (--layout-sidebar wide, a hairline track with a bar on the selected tab) and the panel beside it. Vertical is always the line look (variant is ignored) and ignores overflow="more": the column grows downwards. When the Tabs is narrower than 40rem (the --grid-breakpoint-sm value) the list falls back to the horizontal row that scrolls sideways, above the panel. Tabs stretch to the column; a count sits at the end of the row. |
| ariaLabel | string | No | Tabs | — |
| fill | boolean | No | false | The panel takes the height left under the tab list and its child stretches to it, for a full-height tab such as Chat embedded. Tabs needs a height or a flex/grid slot from its host. |
Product side nav: brand header, icon items, optional badges, closeable; variant single (one column that closes to an icon rail) or rail-subnav (a fixed icon rail plus a SideNav.SubNav column with the picked parent's rows).
Docs and catalog sidebar only: title, grouped text-only links, optional decorative icons and muted counts on group and subgroup headers only, an active page pill and optional footer links.
Choose exactly one option from a small visible set.
Grouped page block with optional heading, description, and actions.