Tabs
Switch between related views in place.
Disclosure list for short related sections: one open at a time, or several with type multiple.
Disclosure list for short related sections.
One item open at a time by default. Down and Up move between headers, Right opens, Left closes.
Use for FAQ or short settings groups. Use Tabs for peer views. Use DocsNav for the sidebar.
import { Accordion } from "agentic-ds-kit";From contracts/accordion.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 | — | content is the panel body: a string or kit pieces such as a Field or Table. meta is short secondary text at the end of the header. count renders a neutral kit Count at the end of the header, before meta. disabled shows the header but it cannot toggle. Header: md control height (36); ChevronRight 16px first, turning down when open; 14/20 title at 550; Count then meta grouped at the end. The body lines up with the title. |
| type | single | multiple | No | single | single keeps one item open; opening another closes it. multiple lets any number stay open. |
| defaultOpen | string | string[] | No | — | Item id (or ids with type multiple) that start open. Omit to start all closed. With type single only the first id opens. |
Switch between related views in place.
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.
Single show/hide panel.
Grouped page block with optional heading, description, and actions.