Collapsible

Display

A flexible collapsible component that can show and hide content with smooth animations. Perfect for FAQs, expandable sections, and space-saving layouts.

Installation

bash
1npx @dinachi/cli@latest add collapsible

Run the CLI command above to automatically install the component and its dependencies.

API Reference

PropTypeDefaultDescription
open
booleanControls the open state of the collapsible
defaultOpen
booleanfalseThe default open state
onOpenChange
(open: boolean) => voidCallback fired when the open state changes
disabled
booleanfalseWhether the collapsible is disabled