Accordion
<Accordion> and <AccordionGroup> are content blocks that start collapsed.
Collapsible content built on native <details>, so it works without JavaScript. <AccordionGroup> merges several accordions into one bordered group.
<AccordionGroup>
<Accordion title="Which package managers are supported?" icon="lucide:package" defaultOpen>
npm, pnpm, and yarn can all install `bitidocs` globally.
</Accordion>
<Accordion title="Which Node.js version do I need?" description="A line of text below the title">
22.13 or later.
</Accordion>
<Accordion title="Can only one be open at a time?" name="faq">
Give accordions in the same group the same `name`; opening one automatically closes the others.
</Accordion>
</AccordionGroup>Which package managers are supported?
npm, pnpm, and yarn can all install bitidocs globally.
Which Node.js version do I need?A line of text below the title
22.13 or later.
Can only one be open at a time?
Give accordions in the same group the same name; opening one automatically closes the others.
Accordion props
Alias: <Collapse>.