Skip to content
Design System
GitHub

One 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

When to use

  • "More filters" under a filter bar.
  • "How to use this" on a card.
  • The rest of a long note.

Use something else

  • A set of sections with headings: Accordion.
  • A hierarchy that opens level by level: Tree.
  • Details over the page: Popover or Sheet.

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.

How to upgrade