# Height Morph Accordion

https://fieldbook.lizardi.mx/components/height-morph-accordion

Category: Data display
![Still of the Height Morph Accordion component, a Fieldbook UI component in Data display.](https://fieldbook.lizardi.mx/thumbs/height-morph-accordion.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/height-morph-accordion-7c7ae9e40e.mp4 (5 s, silent)

Height Morph Accordion: A question list whose answer panels grow and shrink to their natural height with a spring, pushing the rows below them.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

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

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| 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. |

## Usage notes

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

### 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.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "height-morph-accordion",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [FAQ Accordion](https://fieldbook.lizardi.mx/components/faq-accordion-panels)
- [Guide steps accordion](https://fieldbook.lizardi.mx/components/guide-steps-accordion)
- [Starred repos disclosure](https://fieldbook.lizardi.mx/components/starred-repos-disclosure)
- [Spring Push Collapsible](https://fieldbook.lizardi.mx/components/spring-push-collapsible)
- [Stacked FAQ accordion](https://fieldbook.lizardi.mx/components/stacked-faq-accordion)
- [Animated metric counter](https://fieldbook.lizardi.mx/components/animated-metric-counter)
