Accordion
Disclosure list for short related sections: one open at a time, or several with type multiple.
Single show/hide panel. The whole header row is the toggle.
Single show/hide panel. Accordion is the one-open list.
The whole header row is the button. The chevron turns down when open. Not Accordion.
One panel. Click anywhere on the header row to toggle it. Use Accordion when two or more related sections fold together. Compose kit pieces in children — never a local cousin.
import { Collapsible } from "agentic-ds-kit";From contracts/collapsible.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 |
|---|---|---|---|---|
| trigger | string | Yes | — | Title. The whole header row is the button, with a ChevronRight before the title that turns down when open |
| children | slot | Yes | — | Revealed body. Compose kit pieces, never a local cousin |
| defaultOpen | boolean | No | false | — |
| open | boolean | No | — | controlled |
| onOpenChange | function | No | — | (open: boolean) => void |
Disclosure list for short related sections: one open at a time, or several with type multiple.
Grouped page block with optional heading, description, and actions.
Switch between related views in place.
How full the prompt context is and what uses the space, by segment, with a warning near the limit, Trim oldest and compaction with Undo.