Collapsible
v0.64.0, changelogOne region behind one trigger (More filters, a long note) with accordion's chevron, focus ring and motion; the trigger needs no heading and content open on the server does not animate.
More filters
Install
npx shadcn add @syncrobotic/collapsible Also installs: radix-ui@^1, lucide-react@^1, @syncrobotic/cn
Overview
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Open in card
Long note
Usage rules
- One trigger that opens one region: "More filters", "How to use this", the rest of a long note. For a set of sections with headings use Accordion.
- The trigger says what it opens, in a word or two; the chevron says it opens. It needs no heading: it is not a section.
- Closed by default. Content most people need stays out of it.
- Content open from the start (
defaultOpen) shows at once; it animates only when someone opens or closes it.
Changelog
- 0.64.02026-12-01Formatted with Prettier (class order sorted); the code is unchanged.
- 0.53.02026-11-27Its doc opens with its description, word for word; the code is unchanged.
- 0.51.02026-11-27Stable: its API is a standard one the kit styles, unchanged for ten releases, with unit tests. It changes only in a major release from here. Comments trimmed to what they need to say; the code is unchanged.