Noah Kim
Rated 5 out of 5, 2 days ago
We moved our whole design system to these components in a week. The defaults are sensible, the code is easy to read, and dark mode just worked.
New (update: 3rd Nov)140+ New Additions: 35+ Blocks, 100+ Components & 3 Templates
Our Shadcn Collapsible components cover the expandable sections real products need: file trees, Read more reviews, checkout order summaries, advanced form options, expandable code, changelogs, dashboard sidebars, API key managers, and usage cards. Every component is available as both Base UI Collapsible and Radix UI Collapsible.
A collapsible is a trigger and a panel that opens and closes. It keeps secondary content out of the way until users ask for it, so pages stay short and focused.
The Base UI Collapsible version is the default on Shadcn Space. It marks the open trigger with data-panel-open and animates the panel with --collapsible-panel-height and starting and ending styles. Install any collapsible with npx shadcn@latest add @shadcn-space/collapsible-07.
If your project uses Radix UI, choose the Radix UI Collapsible version from the library switcher. It keeps the same design, styles the chevron from aria-expanded, and animates opening with animate-collapsible-down. Install it with npx shadcn@latest add @shadcn-space/radix/collapsible-07.
Hand your agent this brief or our MCP server, not a screenshot.
npx shadcn@latest add @shadcn-space/collapsible-01npx shadcn@latest add @shadcn-space/radix/collapsible-01listComponents({ query: "collapsible" })Collapsible.Panel in Base UI and Collapsible.Content in Radix; the shadcn wrapper calls both CollapsibleContent. Base UI marks an open trigger with data-panel-open and animates height with --collapsible-panel-height, while Radix uses data-state="open" and --radix-collapsible-content-height.group to the trigger and group-aria-expanded:rotate-180 to the icon. Both versions set aria-expanded on the trigger, so this works without library-specific classes.defaultOpen, as in the File Tree example.keepMounted in Base UI or forceMount in Radix and hide it with CSS.aria-expanded and aria-controls, and it toggles with Enter or Space. Write a trigger label that describes the hidden content, like "Show order summary".Most of our Shadcn Collapsible components are free to use in personal and commercial projects. Advanced patterns marked Pro, like the File Tree, are part of Shadcn Space Pro.