
SureUI
registry.directory/aidankmcalister/sureui
Open source confirmation components for shadcn/ui: undo, hold to confirm, type to confirm and more. Built on Base UI.
npx shadcn@latest add @sureui/confirm-button
# works for any of the 21 items in this registry
Featured
confirm-button
A Button that confirms on a click, a second click or a press and hold. Supports inline undo and a pending state for an async onConfirm.
type-to-confirm
An inline form that calls onConfirm only after the exact phrase is typed and every acknowledgement is checked. Supports inline undo and a pending state for an async onConfirm.
undoable
Wraps a list item or table row. Removing it collapses the row in place to a label and an Undo button at the same height, then runs onConfirm when the undo window ends.
tool-approval
Approve or deny an AI SDK tool call, or a batch of them, with a gesture that matches its risk: undo for low, click again for medium, hold for high and a typed phrase for critical. Pass addToolApprovalResponse from useChat as onRespond.