Accordion
A collapsible UI component that expands or hides content sections, perfect for FAQs or grouped information.
Loading...
Installation
Usage
API
Accordion Props
For Main Accordion Content
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | ReactNode[] | The root container for the accordion. Must wrap Accordion.Trigger and Accordion.Content components. | - |
| variant | "dark" | "light" | Controls the visual theme of the accordion container. | "dark" |
| className | string | Additional CSS classes to customize the accordion container styling. | - |
For Accordion Trigger
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | The content displayed inside the accordion trigger button. | - |
| className | string | Additional CSS classes to customize the trigger button styling. | - |
For Accordion Content
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | The collapsible content displayed when the accordion is expanded. | - |
| className | string | Additional CSS classes to customize the accordion content area. | - |