About
An interactive 8-bit arena duel between two fighters with retro HP health bars, turn-based hit mechanics, randomized damage and battle messages, a winner state with rematch, all wrapped in pixel-art alert and badge primitives.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds 8bit Duel Block to your project and fits it to your theme.
Code
How 8bit Duel Block is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import DuelBlock from "@/components/ui/8bit-duel-block";
export default function Default() {
return (
<div className="flex w-full min-h-screen items-center justify-center bg-background p-8 retro">
<DuelBlock />
</div>
);
}








