Skip to content

Spring Accordion

An accessible accordion (aria-expanded, regions, arrow keys, Home and End) whose regions open on a real spring: the height bounces as it lands and the content comes in from blurry to sharp.

Plan
Free · MIT
Dependencies
React only
Props
7 (3 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Every component in the base collection, with its full TypeScript code. Copy it, paste it and it's yours.

Just React. No GSAP, Three or animation libraries: every effect lives in a file you can read and change.

Yes. The components are safe to render on the server and only start their effects in the browser.

Yes, no attribution needed. The code you copy becomes part of your project.

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
items{ id?, title, content }[]"4 sample questions"Accordion items.
type"single" | "multiple""single""single" opens one at a time; "multiple" lets several stay open.
valuestring[]""Open items (controlled mode).
defaultValuestring[]"[primero]"Items open at the start (uncontrolled mode).
onChange(value: string[]) => void""Called when an item opens or closes.
stiffnessnumber260Stiffness of the spring: higher opens snappier.
dampingnumber0.58Bounce of the spring: 0.4 bounces, 1 arrives without bouncing.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { SpringAccordion } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • A tooltip (role tooltip) that follows the cursor on a spring and hangs from it like a tag: it tilts with speed and stretches a little as it moves. It also appears on keyboard focus.

    Navigation

  • Steps with a progress line that fills from one node to the next; the new step lights up as the stroke arrives and the checkmark draws itself on completion.

    Navigation

  • Notifications stacked like cards: they fan out on hover or focus, pause while you read them, close on their own and are announced with aria-live.

    Navigation