Prosefly
Type to search documentation.

MDX components

Accordion

Edit collapsible sections and FAQ accordions in Fumadocs and Prosefly MDX documentation.

Use Prosefly’s MDX component editor to edit expandable sections and FAQ content while keeping your Fumadocs or Prosefly component syntax.

Supported profiles

The same editor supports the Astro, Starlight, Fumadocs, and Prosefly profiles. Select the profile that matches your site to see the component syntax and controls available for that integration.

Edit in Visual

Expand an item to work on its body and edit its title in the component. Use the group’s add-item action to create another item. Item controls let you move or remove an item. Group and item properties depend on the profile.

accordion.mdx

Loading editor…

An interactive example. Changes stay on this page.

Source example

mdx
import { Accordion, Accordions } from 'fumadocs-ui/components/accordion';
<Accordions type="multiple">
<Accordion title="Where are drafts saved?" value="drafts">
Drafts stay in the Content Space until you publish them.
</Accordion>
<Accordion title="Can I keep my existing site?" value="site">
Your current app and build pipeline continue to serve the published content.
</Accordion>
</Accordions>

Profile differences

ProfileGroup and item
FumadocsAccordions and Accordion; the group uses type="single" or type="multiple"
ProseflyAccordions and AccordionItem; the group uses the multiple property
StarlightNo dedicated Accordion profile component

Keep item values unique where used. Expanding an item for editing is distinct from setting its published default-open properties. Starlight’s HTML details content is a separate form, not the Accordion component shown here.

Starlight Details

Starlight uses the native HTML <details> element for disclosure content. Use the example below when your page needs a simple expandable note rather than a Fumadocs or Prosefly Accordion group.

details.mdx

Loading editor…

An interactive example. Changes stay on this page.

Source example

mdx
<details open>
<summary>What does the editor preserve?</summary>
The body remains editable in Visual mode.
</details>

Read next: Callout · Tabs · Steps.

Last updated Oct 19, 2026