About
A clickable loot-crate icon that shakes until opened, used for reward reveals, daily bonuses, or gamified unlock interactions.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Loot Box to your project and fits it to your theme.
Code
How Loot Box is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { LootBox } from "@/components/ui/loot-box";
export default function LootBoxDemo() {
return (
<div className="flex min-h-[400px] w-full items-center justify-center bg-background p-8 text-foreground">
<LootBox onOpen={() => console.log("Loot box opened")} />
</div>
);
}








