Collapsible
A single section that opens and closes, without an accordion's set semantics.
- Layout
- 1 file
- 1 npm package
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add collapsiblenpm packages installed: radix-ui.
import { Collapsible } from "@/components/ui/collapsible";Default
Open By Default
<Collapsible>
Every prop of Radix UI’s Collapsible.Root, plus className.
<CollapsibleTrigger>
Every prop of Radix UI’s Collapsible.Trigger, plus className.
<CollapsibleContent>
Every prop of Radix UI’s Collapsible.Content, plus className.
The trigger carries aria-expanded and points at the region it controls, both from the primitive. Reach for this rather than an Accordion of one item: a single-item Accordion gives its trigger a heading role and a position in a list of one, neither of which is true.
8/8
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — passes
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes