Metal Button
FreeA polished metal button with a beveled edge and a reflection that follows the cursor.
Buttons
Press and hold to confirm: a ring fills, the button shakes more and more, and it vibrates on completion. Works with mouse, touch or keyboard.
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 | "Hold to delete" | Text below while not pressed. |
holdingLabel | string | "Keep holding…" | Text while being held down. |
confirmedLabel | string | "Deleted" | Text once confirmed. |
instructions | string | "Press and hold the button, or the Space key, until the ring is complete." | Screen-reader instructions (not visible). |
duration | number | 1200 | Milliseconds you have to hold. |
color | string | "#ff5a64" | Color of the ring and the glow. |
confirmedColor | string | "#34d399" | Color of the ring once confirmed. |
size | number | 96 | Diameter of the button, in px. |
resetAfter | number | 2200 | Milliseconds to return to the initial state after confirming (0 = stays confirmed). |
icon | ReactNode | "" | Custom icon; if missing, a trash can is used. |
disabled | boolean | false | Disables the button. |
onConfirm | () => void | "" | Called when the hold completes. |
1Install the package
npm i furin-ui2Import it
import { HoldToConfirm } 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 polished metal button with a beveled edge and a reflection that follows the cursor.
Buttons
A button whose ripple is born exactly where you click: a luminous wavefront with rings that sweeps out to the farthest corner.
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.
Buttons