Spring Accordion
FreeAn 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.
Navigation
Accessible tabs (tablist, arrow keys, Home and End) with a pill that slides on a spring: the leading edge arrives first and stretches the pill as it crosses.
Free forever
MIT license, for personal and commercial projects. See installation
Made with Furin: Pill Nav · Metal Button · Copy Morph
| Prop | Type | Default | Description |
|---|---|---|---|
tabs | (string | { value, label, badge? })[] | "Overview, Activity, Team, Settings" | Tabs: strings or { value, label, badge }. |
value | string | "" | Active tab (controlled mode). |
defaultValue | string | "" | Initial tab (uncontrolled mode). |
onChange | (value: string) => void | "" | Called when another tab is selected. |
panels | Record<string, ReactNode> | "" | Content of each panel, keyed by tab value (optional). |
label | string | "Sections" | Accessible label for the tab list. |
stiffness | number | 380 | Stiffness of the pill's spring: higher feels snappier. |
damping | number | 0.6 | Bounce of the pill: 0.4 overshoots and returns, 1 arrives without bouncing. |
color | string | "#F3F4F7" | Color of the pill. |
activeTextColor | string | "#0B0C0F" | Text color on top of the pill. |
autoplay | number | 0 | Seconds between automatic changes (0 = off; it stops on interaction). |
1Install the package
npm i furin-ui2Import it
import { PillNav } 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.
Each file ships its own CSS: there's nothing else to install.
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.
Navigation
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