← ui-lab

Confirm Button

A destructive action guarded by an inline two-step confirmation. The first click reveals a confirm and a cancel control and moves focus to confirm; cancelling backs out and confirm performs the action, announcing it in a role="status" region.

Preview

Installation

npx shadcn@latest add https://ui.publictheta.com/r/confirm-button.json

Conformance

This component conforms to the @publictheta/ui-spec confirm-button specification. Run the suite against any implementation with pnpm conformance.