Back to Catalog

Drag to Confirm

free

Spring-resistant slide-to-confirm track for destructive or high-stakes actions with auto-reset.

#slider#confirm#gesture#safety
High-stakes action
Slide to deploy production
CLI Installation
pnpm dlx shadcn@latest add https://ui.ibidi.dev/r/drag-to-confirm.json

Props

PropTypeDefaultDescription
labelstring'Slide to deploy production'Idle prompt inside the track.
variant'default' | 'danger''default'Visual tone of the track and thumb.
onConfirm() => void—Callback fired when dragged past threshold.
autoResetMsnumber2400Delay before resetting back to idle.