Semaine de lancement50 % sur un an d’AuteurVoir les offres
EspacesPasser à Pro
Tous les composants

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.

Ouvrir dans l’éditeur
Hold to open
Caractère
Joueur

Ajoutez-le à votre app

$npx velvo add mystery-box

Pour Claude Code, Cursor ou tout projet avec un terminal.

À utiliser pour

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

Pas pour

  • Paid loot boxes. Many countries regulate them.

Props

Lues dans le TypeScript du composant lui-même, donc toujours à jour.

PropTypePar défaut
prizeObligatoirestring
raritystring'Rare'
colorstring'#BF5AF2'
iconIconName'gift'
onOpen() => void

Améliorez-le avec une skill

Ajoutez-en une à votre agent et il utilisera Mystery box comme prévu.

Motion with weightGratuit

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

$npx velvo skill velvo-motion
Lire la skill
Colour and hierarchyGratuit

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

$npx velvo skill colour-and-hierarchy
Lire la skill

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
SuivantPack opening