Skip to content

Slide to Confirm

A physics-driven handle you drag to the end to confirm; release early and it springs back with a bounce. Accessible as a slider.

Plan
Free · MIT
Dependencies
React only
Props
11 (9 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

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

Props

PropTypeDefaultDescription
childrenReactNode"Slide to confirm"Text on the track.
confirmedLabelstring"Confirmed"Text shown once confirmed.
colorstring"#5b6cff"Start color of the trail the handle leaves.
colorTostring"#8b5cf6"End color of the trail.
confirmedColorstring"#34d399"Color of the trail once confirmed.
widthnumber330Maximum track width, in px.
heightnumber66Track height, in px.
thresholdnumber0.92How far it must travel to confirm, from 0.5 to 1.
resetAfternumber2400Milliseconds before returning to the start after confirming (0 = stays confirmed).
disabledbooleanfalseDisables the control.
onConfirm() => void""Called on confirm.

Installation

Install it

1Install the package

npm i furin-ui

2Import 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.

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 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

  • A physical toggle-switch lever with a satisfying click.

    Buttons