Delete Account Confirm

Account deletion step with a danger alert and a confirmation field: the delete button stays disabled until the user types DELETE. Guards against misclicks.

src/registry/ui/delete-account-confirm.tsx/r/delete-account-confirm.json

Installation#

bash
npx shadcn@latest add @minidev/delete-account-confirm

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/delete-account-confirm.json

Usage#

tsx
import { DeleteAccountConfirm } from "@/components/ui/delete-account-confirm"

export function Example() {
  return <DeleteAccountConfirm />
}

API reference#

DeleteAccountConfirm props
PropTypeDefault
classNamestring-
onConfirm() => void-

Dependencies#

npm

React only
All settings page components

Learn more