Accordion
Collapse long-form content behind expandable headings.
Fold FAQs, optional details, or long asides behind a heading the reader expands on demand, one panel at a time by default, so the page stays scannable.
A documentation framework for Svelte 5. Your markdown files are SvelteKit routes, so examples run as part of one real app.
No. Nav is derived from each page’s frontmatter, never hand-written.
Yes. Pass multiple to the Accordion and every panel toggles independently.
Usage
Each AccordionItem takes a title (the always-visible summary) and claims
its own value automatically, so you never wire up ids. Leave blank lines around the panel content so mdsvex parses the markdown inside.
Pass multiple to let panels stay open independently:
API reference
Accordion
multiple boolean default falseAccordionItem
title required string