bloxa

Collapsible

FREE

Shows and hides content with an animated height and a turning chevron.

Installation

Terminal
npx @bloxa/cli add collapsible
# or: npx shadcn@latest add @bloxa/collapsible

Packages 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.

PropTypeDefaultDescription
open / defaultOpen / onOpenChangeboolean / (open) => void—Open state.