Hold to confirm
CoreConfirm a destructive action by holding, not tapping.
pnpm dlx shadcn@latest add https://wui.alann.works/r/hold-to-confirm.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
label* | string | required |
confirmedLabel | string | — |
onConfirm* | () => void | required |
duration | number | — |
icon | ReactNode | — |
tone | "accent" | "danger" | "neutral" | — |
confirmed | boolean | — |
onHoldChange | (holding: boolean) => void | — |