Data display
Stacked FAQ accordion
Stacked FAQ accordion: A vertical list of questions that expand one at a time into an answer panel, with a chevron that rotates to match the open state.
Using Stacked FAQ accordion
Stacked 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.
| Control | Type | Default | Preview limits |
|---|---|---|---|
defaultOpenIndex | number | 0 | From 0 to 3; step 1 |
allowMultipleOpen | boolean | true | No additional limit in the metadata. |
accentColor | color | #FF6A1F | No additional limit in the metadata. |
animationMs | number | 220 | From 150 to 500; step 10 |
Which frameworks are available for Stacked FAQ accordion?
Stacked 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 Stacked FAQ accordion depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Stacked FAQ accordion?
The React source for Stacked FAQ accordion includes: native elements (button); attributes and handlers (aria-controls, aria-expanded, aria-hidden, aria-labelledby); explicit roles (region). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Stacked FAQ accordion handle reduced motion?
Stacked FAQ accordion reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: durationS: prefersReducedMotion ? 0 : animationMs / 1000. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.