Lanseringsvecka50 % rabatt på ett år AuteurSe planer
SpacesSkaffa Pro
Alla komponenter

Mystery box Pro

Hold to charge it: the box shakes harder and light leaks from the seams, then the lid blows off in a flash, rays turn behind it and the prize card flips up with its rarity shimmering.

Öppna i editorn
Hold to open
Karaktär
Lekfull

Lägg till i din app

$npx velvo add mystery-box

För Claude Code, Cursor eller vilket projekt som helst med terminal.

Använd till

  • Daily rewards, streak gifts, level-up prizes.

Inte till

  • Paid loot boxes. Many countries regulate them.

Props

Lästa direkt ur komponentens egen TypeScript, så de är alltid aktuella.

PropTypStandard
prizeKrävsstring
raritystring'Rare'
colorstring'#BF5AF2'
iconIconName'gift'
onOpen() => void

Bättre med en skill

Ge din agent en, så använder den Mystery box som det är tänkt.

Motion with weightGratis

Keeps its springs and press feel intact when your agent wires it into your app.

$npx velvo skill velvo-motion
Läs skillen
Colour and hierarchyGratis

Picks colours that keep it readable and calm, in light and dark.

$npx velvo skill colour-and-hierarchy
Läs skillen

Specs

Category
Games
Tier
Pro
Built with
React and TypeScript
Files
18
Size
389 KB
Needs
framer-motion
Install
npx velvo add mystery-box
Works with
Next.js, Vite, Remix, Expo web

Licence

Velvo Pro licence
  • Personal and commercial use
  • Change it however you like
  • No credit needed

Not for resale as a component or a UI kit.

Tags

gamespaymentsproreact
NästaPack opening