f0rextasy

Loot Box

Component

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

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    19
  • Board Checklist

    Board Checklist

    15
  • Stamp Seal

    Stamp Seal

    15
  • Network Graph

    Network Graph

    14
  • Navbar

    Navbar

    12
  • Running Order Timeline

    Running Order Timeline

    11
  • Milestone Chart

    Milestone Chart

    10
  • Empty State Card

    Empty State Card

    7