Data display
Height Morph Accordion
Height Morph Accordion: A question list whose answer panels grow and shrink to their natural height with a spring, pushing the rows below them.
Using Height Morph Accordion
Height Morph 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 |
|---|---|---|---|
accentColor | color | #FF6A1F | No additional limit in the metadata. |
allowMultiple | boolean | false | No additional limit in the metadata. |
duration | number | 0.32 | From 0.1 to 0.8; step 0.02 |
showRules | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Height Morph Accordion?
Height Morph 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 Height Morph Accordion depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.
What accessibility details are visible in Height Morph Accordion?
The React source for Height Morph 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 Height Morph Accordion handle reduced motion?
Height Morph Accordion reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: transition: reduce ? { duration: 0 } : { type: "spring", duration, bounce: 0.18 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.