Slide to confirm preview

Slide to confirm

A handle you push across a track; past the mark it finishes the journey itself and unfurls into the confirmation.

  • Group
    Gestures
  • Origin
    Adapted · Bencho · source
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/slide-confirm

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { SlideConfirm } from "@/registry/components/slide-confirm/slide-confirm";

<SlideConfirm />

Props

PropTypeDefaultDescription
corner?numberCORNER
speed?numberSPEED
width?numberSPAN

When to use

Irreversible or high-stakes confirmations (delete, pay, send) where a click is too easy.

When not to use

Routine actions, or users who may lack fine pointer control without a button fallback next to it.

Related

Button · Tactile toggle