Danger Zone

Danger zone settings card with a red outline, a warning that the action cannot be undone and a destructive delete button. Put it last on settings pages.

src/registry/ui/danger-zone.tsx/r/danger-zone.json

Installation#

bash
npx shadcn@latest add @minidev/danger-zone

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/danger-zone.json

Usage#

tsx
import { DangerZone } from "@/components/ui/danger-zone"

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

API reference#

DangerZone props
PropTypeDefault
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All settings page components

Learn more