Components › Navigation
Accordion
Stacked sections that expand one or many at a time.
Installation
npx plankui@latest add accordionUsage
import { Accordion } from "@/components/ui/accordion";
<Accordion type="single" collapsible>
<AccordionItem value="a">
<AccordionTrigger>Question</AccordionTrigger>
<AccordionContent>Answer</AccordionContent>
</AccordionItem>
</Accordion>API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| type | "single" | "multiple" | required | How many can be open. |
| collapsible | boolean | false | Allow closing the open item in single mode. |