Mystery Box
Three sealed boxes on a theme-aware stage. Visitors pick one - the lid lifts, the prize unlocks, and a code is ready to copy. Works in light and dark.
Pick a box
Cream boxes with colored ribbons - clear on light and dark.
Loading…
Prize
Gold gift boxes with amber reward chrome - same pick interaction.
Loading…
Crate
Warm wood stage and amber ribbons - warehouse crate energy.
Loading…
Vault
Steel slate chrome - locked boxes with a cold vault feel.
Loading…
Neon
Fuchsia and cyan glow with gold-style gifts.
Loading…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| look | "pick" · "prize" · "crate" · "vault" · "neon" | "pick" | pick cream · prize gold · crate wood · vault steel · neon glow. |
| prizes | MysteryBoxPrize[] | - | Up to three prizes (`offer`, `code`, optional `label`). |
| ctaLabel | string | "Claim prize" | Primary button label after reveal. |
| hint | string | "Tap a box to open it" | Hint shown before a box is picked. |
| delayMs | number | 400 | Auto-open delay in milliseconds. |
| position | "fixed" · "absolute" | "absolute" | Use fixed on live sites; absolute inside a relative demo stage. |