Accordion display a list of high-level options that can expand/collapse to reveal more information.
import {
Accordion,
AccordionItem,
AccordionTrigger,
AccordionPanel,
} from "@/components/ui/accordion";
<Accordion>
<AccordionItem>
<AccordionHeader>
<AccordionTrigger />
</AccordionHeader>
<AccordionPanel />
</AccordionItem>
</Accordion>;You can use the variant prop to change the variant of the accordion.
<Accordion
variant="default"
>
...rest content...
</Accordion>Use the multiple prop to allow multiple items to be expanded at the same time.
Groups all parts of the accordion. Renders a <div> element.