amankaushik481

Danger Zone

Component

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>
  );
}

More by amankaushik481

View all
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    5
  • Background Boxes

    Background Boxes

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Typing Text

    Typing Text

    1
  • Treemap Chart

    Treemap Chart

    1
  • Particles

    Particles

    1