Collapsible animation
Shadcn's collapsible has no motion of its own; with Keyframery it eases open and closed.
with <Cuts />
What moves
| When | What you see | Timing | How |
|---|---|---|---|
| Opens or closes | The height eases open and closed | 180–220 ms | Automatic |
Install
Collapsible is shadcn's own component. With <Cuts /> in your root layout (Quick start), there's nothing else to add:
npx shadcn add collapsibleTurn it off
Put data-cut="none" on a collapsible (or anything around it) to keep shadcn's own motion there. <Cuts responses="none" /> turns off every response across the app and keeps the cuts. With reduced motion, movement becomes a short fade or nothing.