Skip to content
Menu

Data display

FAQ Accordion

FAQ Accordion: A vertical list of question headings where opening one panel slides its answer into view and closes whichever panel was open before it.

Using FAQ Accordion

FAQ Accordion uses the card preview frame with a light/dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
defaultOpenselectfirstOptions: first, none
accentColorcolor#38BDF8No additional limit in the metadata.
transitionMsnumber300From 150 to 600; step 50
dividersbooleantrueNo additional limit in the metadata.
Which frameworks are available for FAQ Accordion?

FAQ Accordion is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does FAQ Accordion depend on?

The React metadata lists no additional npm dependencies beyond React.

What accessibility details are visible in FAQ Accordion?

The React source for FAQ Accordion includes: native elements (button); attributes and handlers (aria-controls, aria-expanded, aria-hidden, aria-label, aria-labelledby); explicit roles (group, region). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does FAQ Accordion handle reduced motion?

FAQ Accordion reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components