Accordion
- The main component that wraps the accordion items with context.
AccordionItem
- The single item component that wraps the trigger and content.
AccordionTrigger
- The trigger component that opens the item.
AccordionContent
- The content component that is shown when the trigger is clicked.
You can allow multiple open items by using the allowMultiple
prop.
You can allow toggle single item by using the allowToggle
prop. With allowMultiple
prop, it will be always possible to toggle them.
You can control the Accordion by using the onValueChange
prop.
You can change the variant of the Accordion by using the variant
prop.
You can change the size of the Accordion by using the size
prop.