Accordion
Imports
- Accordion: The main component to display a list of accordion items.
- AccordionItem: The item component to display a single accordion item.
- AccordionTrigger: The title component to display the title of the accordion item.
- AccordionContent: The content component to show the hidden content of the accordion.
Usage
Example
Expand Multiple Items
If the type is set to multiple
, the accordion will allow several elements to expand at the same time.
Rounded
bordered
API
AccordionItem Props
Props | Type | Description |
---|---|---|
radius | 'none' | 'sm' | 'md' | 'lg' | The radius of the Accordion. |
bordered | 'none' | 'sm' | 'md' | 'lg' | The border of the Accordion. |