OrcDev

8-bit Alert Dialog

Component 2

About

Pixel-art confirmation alert dialog from 8bitcn.com — retro pixel border on modal. Wraps Radix AlertDialog (inlined via esbuild).

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds 8-bit Alert Dialog to your project and fits it to your theme.

Code

How 8-bit Alert Dialog is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";
import {
  AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader,
  AlertDialogTitle, AlertDialogDescription, AlertDialogFooter,
  AlertDialogCancel, AlertDialogAction, Button,
} from "@/components/ui/8bit-alert-dialog";
export default function Default() {
  return (
    <div className="flex w-full min-h-screen items-center justify-center bg-background p-8 overflow-hidden font-pixel">
      <AlertDialog>
        <AlertDialogTrigger asChild>
          <Button variant="destructive">Delete Save</Button>
        </AlertDialogTrigger>
        <AlertDialogContent className="bg-card text-card-foreground px-6">
          <AlertDialogHeader className="px-0">
            <AlertDialogTitle>Are you sure?</AlertDialogTitle>
            <AlertDialogDescription>
              This permanently deletes your save file.
            </AlertDialogDescription>
          </AlertDialogHeader>
          <AlertDialogFooter className="px-0">
            <AlertDialogCancel>Cancel</AlertDialogCancel>
            <AlertDialogAction>Delete</AlertDialogAction>
          </AlertDialogFooter>
        </AlertDialogContent>
      </AlertDialog>
    </div>
  );
}

More by OrcDev

View all
  • 8bit CTA 1 — Comparison

    8bit CTA 1 — Comparison

    295
  • 8bit 404 Page

    8bit 404 Page

    172
  • 8bit Loading Screen

    8bit Loading Screen

    104
  • 8bit Changelog

    8bit Changelog

    75
  • 8-bit Login Form

    8-bit Login Form

    59
  • 8bit FAQ 2 — Card Grid

    8bit FAQ 2 — Card Grid

    57
  • 8-bit Stats Dashboard

    8-bit Stats Dashboard

    54
  • 8bit FAQ 3 Searchable

    8bit FAQ 3 Searchable

    53