Press and hold to confirm a risky change, with a restore option after it lands.
The help line gives the reason.
Import it and pass your content. The props that matter most are listed next.
"use client";
import { HoldToConfirm } from "@/components/ui/notchset/hold-to-confirm";
export function RollbackControl({ rollback, restore }: { rollback: () => void; restore: () => void }) {
return <HoldToConfirm onConfirm={rollback} onUndo={restore} />;
}duration / steps–
numberThe hold (1400ms) and the nodes on the trace (12).
onConfirm / onUndo–
() => voidWhen the hold lands; when Restore is pressed.
undoWindow–
numberHow long Restore is offered (5000ms), one dot a second.
labels–
Partial<HoldLabels>Kicker, statuses, unit, regions, from/to, key labels and help lines.
disabled / disabledReason–
boolean / stringThe reason shows in the help line.
HoldToConfirmdata-slot="hold-to-confirm-card"
The card.
keydata-slot="hold-to-confirm"
The hold key.
components/ui/notchset/hold-to-confirm.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
pnpm dlx shadcn@latest add @notchset-pro/hold-to-confirmNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release
Pro is in early access.