Founding price: $35, then $79.99 after 23:59 UTC on 4 November, then $79.99
Get ProA slider that makes a paid or risky action harder to trigger by accident: drag the thumb to the end, or activate it with the keyboard.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Use it for actions that cost money or are hard to reverse and where a mistaken tap is likely: pay, send, start a ride.
Do not use it for routine actions: it is slower than a button. For destructive web actions, prefer Confirm Destructive Action.
| Part | Prop | Type | Default | Description |
|---|---|---|---|---|
SlideToConfirm | label | string | required | The instruction and the button's name. |
SlideToConfirm | onConfirm | () => void | required | Called once. |
SlideToConfirm | confirmedLabel | string | "Confirmed" | Text after confirming. |
SlideToConfirm | threshold | number | 0.85 | Share of the track the thumb must cross. |
SlideToConfirm | disabled | boolean | false | Turn it off. |
The component ships with a Testing Library test (slide-to-confirm.test.tsx). jsdom has no touch or layout, so the test drives the component through its keyboard and pointer-free paths and checks roles, names and state.