Slide to Confirm
Drag a hot slug along a recessed channel and the channel heats behind it: a soft accent bloom trails the knob and fades to nothing, and the knob warms as it nears the end.
$149 once · every Pro piece
Customize
Let go early and it springs home with the wake receding; reach the end and it snaps into place, a heat pulse runs through the channel, and it settles into a calm accent fill with a solid accent knob and a drawn check. No borders, no gaps. Hold Right Arrow, or press Enter twice, from the keyboard.
Install
npx shadcn@latest add @obsyde/slide-confirmNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { SlideConfirm } from '@/components/obsyde/ember/slide-confirm/SlideConfirm';
export function Example() {
return (
<SlideConfirm label="Slide to confirm" doneLabel="Confirmed" />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/slide-confirm/SlideConfirm.tsxcomponentember/slide-confirm/slide-confirm.cssstylesember/slide-confirm/SlideConfirmDemo.tsxdemoember/tactile-kit/kit.tssharedember/shared/accent.tssharedember/shared/spring.tssharedember/shared/ember.cssshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
labelLabel | string | 'Slide to confirm' |
doneLabelDone label | string | 'Confirmed' |
widthWidth | number | 320 |
resetMsReset after (ms) | number | 2400 |
disabledDisabled | boolean | false |