Components / Navigation & overlaysv1.0.0 · updated 2026-09-25
Free · MIT
Height animates with motion/react, the plus turns into a minus on the punch curve, and only one item is open at once.
faqdisclosure
Customize
Accent
Install
$ npm install motion- Copy
Accordion.tsxfrom the Code tab intocomponents/brazen/. - Make sure the Brazen tokens are loaded (
tokens.css); colours and timing come from them. - Import it and pass the props below.
Props 2
| Prop | Type | Default | Description |
|---|---|---|---|
items | { id; title; meta?; content }[] | — | Folds. |
defaultOpen | string | — | Initially open id. |
Features
- Single open item
- Animated height
- aria-expanded wiring
Dependencies
motion@^14.0.0react@>=19peer
Works with
- React 19
- Next.js 15+
- TypeScript
Reduced motion
Opens instantly.