/Docs
Search docs or ask a question⌘K
DocsAgent
Changelog
Components Accordions

Accordions

Accordion and AccordionGroup components for collapsible content sections.

2 min read

Accordions hide secondary content behind an animated, expandable header. Use them for FAQs, advanced options, or any detail that most readers can skip.

Accordion

Wrap collapsible content in <Accordion> with a title:

mdx
<Accordion title="How do I rotate an API key?">
Go to **Settings → API Keys**, click the key you want to rotate, and select
**Rotate**. The old key keeps working for 24 hours.
</Accordion>

Open by default

Add defaultOpen to render the accordion expanded:

mdx
<Accordion title="Prerequisites" defaultOpen>
You need a Syntext account and the `stx` CLI installed.
</Accordion>

Icons

Accordions accept the same icon names as Cards:

mdx
<Accordion title="Advanced configuration" icon="settings">
Tune build concurrency, cache TTLs, and webhook retries.
</Accordion>

AccordionGroup

Group related accordions into a single fused stack with <AccordionGroup>:

mdx
<AccordionGroup>
<Accordion title="Which plans include custom domains?">
Custom domains are available on Starter and above.
</Accordion>
<Accordion title="Can I bring my own SSL certificate?">
No — certificates are provisioned automatically.
</Accordion>
<Accordion title="How long do builds take?">
Most sites build in under a minute.
</Accordion>
</AccordionGroup>

Props

PropTypeDescription
titlestringHeader text shown in the toggle button. Defaults to "Details" when omitted
iconstringOptional icon name or emoji shown before the title
defaultOpenbooleanRender expanded on page load
variant"list"Compact row with a leading caret. Also accepted on <AccordionGroup>, where it applies to every item

List variant

For short, parallel entries such as a list of regions, variant="list" draws compact rows with a leading caret instead of bordered panels:

mdx
<AccordionGroup variant="list">
<Accordion title="United States">Data is stored in us-east-1.</Accordion>
<Accordion title="European Union">Data is stored in eu-west-1.</Accordion>
</AccordionGroup>
Tip

Prefer <Accordion> over <Expandable> for reader-facing FAQ content — accordions have a full-width header, icon support, and grouped styling.

Was this page helpful? Yes No
Previous
Next
Product
Resources
Company
© 2026 SyntextBuilt with Syntext