Collapsible

Expand/collapse region with trigger and animated panel.

Default
Disabled
This section is managed by your administrator and can't be toggled.
Faq
Every plan starts with a 14-day free trial. No credit card required to get started.
Uncontrolled
Unlimited projects, priority support, and advanced analytics — managed entirely by the component's own state.
With Rich Content
Plan
Pro (annual)
Seats
12 of 20
Renews
Mar 1, 2026
Owner
ada@acme.com
  • Priority support
  • Custom domains
  • Audit log export

Installation

npx shadcn@latest add @byronwade/collapsible

Props

PropTypeDefaultDescription
openbooleanControlled open state of the panel.
defaultOpenbooleanfalseUncontrolled initial open state.
onOpenChange(open: boolean) => voidFires when the open state changes.
disabledbooleanfalseDisable the trigger.