WritedocsWritedocs

Accordion and AccordionGroup

What is writedocs.json? #

The config file describing navigation, styles, and metadata for your site. See Configuration overview.

Can I self-host the output? #

Yes — the build produces a static dist/ folder that can be hosted anywhere; no server-side runtime required.

<AccordionGroup>
  <Accordion title="What is writedocs.json?" icon="file-cog">
    ...
  </Accordion>
  <Accordion title="Can I self-host the output?">
    ...
  </Accordion>
</AccordionGroup>

Accordion props

titlestringrequired

Like Callout/Card/etc., becomes a linkable #slug anchor next to it automatically, deduped against every other titled element on the page.

iconstring

Resolved the same way as Card’s own icon prop — see Icons. With none set, the row lays out exactly as before.

AccordionGroup takes no props — it’s a spacing wrapper that also unites its children under one shared border.