Collapsible
FREEShows and hides content with an animated height and a turning chevron.
Installation
Terminal
npx @bloxa/cli add collapsible
# or: npx shadcn@latest add @bloxa/collapsiblePackages installed automatically: radix-ui
Examples
Usage
- bloxa-dev/bloxa
- bloxa-dev/.github
- bloxa-dev/examples
API reference
Every component also accepts the props of the element it renders.
Collapsible
Use with CollapsibleTrigger, CollapsibleContent and CollapsibleChevron.
| Prop | Type | Default | Description |
|---|---|---|---|
| open / defaultOpen / onOpenChange | boolean / (open) => void | — | Open state. |