A 3D mechanical keycap with sloped walls, matte plastic and backlight; it presses down with a bounce and can click.
Buttons
A physics-driven handle you drag to the end to confirm; release early and it springs back with a bounce. Accessible as a slider.
Free forever
MIT license, for personal and commercial projects. See installation
Made with Furin: Pill Nav · Metal Button · Copy Morph
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | "Slide to confirm" | Text on the track. |
confirmedLabel | string | "Confirmed" | Text shown once confirmed. |
color | string | "#5b6cff" | Start color of the trail the handle leaves. |
colorTo | string | "#8b5cf6" | End color of the trail. |
confirmedColor | string | "#34d399" | Color of the trail once confirmed. |
width | number | 330 | Maximum track width, in px. |
height | number | 66 | Track height, in px. |
threshold | number | 0.92 | How far it must travel to confirm, from 0.5 to 1. |
resetAfter | number | 2400 | Milliseconds before returning to the start after confirming (0 = stays confirmed). |
disabled | boolean | false | Disables the control. |
onConfirm | () => void | "" | Called on confirm. |
1Install the package
npm i furin-ui2Import it
import { SlideToConfirm } 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.
A 3D mechanical keycap with sloped walls, matte plastic and backlight; it presses down with a bounce and can click.
Buttons
A button that fills with liquid from the exact point where the cursor enters, with a meniscus edge and light bubbles, and drains toward where it leaves.
Buttons