About
A red-outlined settings card for one irreversible action, such as deleting a workspace, that opens a confirmation dialog before running the destructive callback.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Danger Zone to your project and fits it to your theme.
Code
How Danger Zone is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { DangerZone } from "@/components/ui/danger-zone";
export default function DangerZoneDemo() {
return (
<div className="w-full max-w-md">
<DangerZone
description="Delete this workspace and every registry fork tied to it. This cannot be undone."
actionLabel="Delete workspace"
onConfirm={() => console.log("workspace deleted")}
/>
</div>
);
}







