Accordions
Use accordions for FAQs, optional explanations, and advanced notes that should stay collapsed by default.
Accordions are useful when a page includes optional context that should not interrupt the main flow. ## Use in MDX Add an Accordion block inside your .mdx article: mdx <Accordion title="Where do docs categories live?"> Categories live in `src/data/docs.ts`. </Accordion> ## Implementation notes The component lives in src/components/docs/Accordion.astro. Update that file and the .docs-accordion* styles in src/index.css if you want a different disclosure pattern. ## Preview First accordion item
Second accordion item
Third accordion item
Where do docs categories live?
src/data/docs.ts.