Skip to content
Slide to deploy
Executed

Slide to Confirm

A high-precision tactile slider with physical drag constraints, 75% magnetic gravity latch pocket, and spring recoil return. Engineered for irreversible production triggers.

Dependencies

motionlucide-reactclsxtailwind-merge

Interaction

Constrained linear drag track with 75% magnetic latch detent. If released below the 75% gravity threshold, high-stiffness spring recoil returns puck to origin. Reaching 75% snaps puck to lock position and triggers irreversible execution.

Props

PropTypeDescription
labelstringLabel displayed inside track during idle or sliding state.
confirmedLabelstringLabel displayed upon successful confirmation.
onConfirm() => voidCallback fired when slide passes 75% magnetic latch.
onReset() => voidCallback fired when puck resets back to idle position.
autoResetTimeoutnumberMilliseconds before auto-resetting back to idle (0 to disable).
disabledbooleanDisables dragging and keyboard interaction.
classNamestringAdditional classes applied to outer wrapper.

MIT License. Free to use in personal and commercial projects. Built for Peel UI.