Pixel Gacha
Capsule machine for campaign and game reward pages, drawn as pixel art.
When to use it
- Prize draws on game event pages, festival campaigns and app reward centers, paid with tickets, points or free pulls
- Revealing a randomized gift, coupon or cosmetic where the rarity of the result should be felt, not just read
Watch out
- Draw on your server and return the prize from draw(); the machine never picks one, and a failed draw gives the pull back
- Show the odds on the page; many regions require disclosure for paid random draws, and some restrict them
- The machine and the button are real buttons, and the result with its rarity and code is announced, so it works without the effects
Let your agent add it
One copy holds the install command, when to use it, the props and the design rules. Paste it into Claude Code, Cursor or Codex.
This is a Pro block
One license unlocks every Pro block, now and in the future.
One-time $129 with a year of updates, or $19 a month. Use it in unlimited personal and client projects; installed blocks stay yours.
Install with your license
- 1. Add the SunUI Pro registry to
components.json.components.json{ "registries": { "@sunui-pro": { "url": "https://sunui.synvize.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${SUNUI_LICENSE_KEY}" } } } } - 2. Put your license key in
.env.local.$ SUNUI_LICENSE_KEY=your-license-key - 3. Install the block.
$ npx shadcn@latest add @sunui-pro/pixel-gacha
Similar blocks
- Pro
- Pro
- Pro
- Pro
- Pro