Scratch Card
A scratch-to-reveal coupon card with an HTML5 canvas foil, dust particles on scratch, and a reveal callback at a configurable threshold.

- Library
- Spectrum UI
- Framework
- React
- Type
- component
- License
- Apache-2.0
- Dependencies
- framer-motion
- Install
npx shadcn@latest add @spectrumui/scratch-card- Files
app/registry/scratch-card/scratch-card.tsxlib/utils.ts
- Source
- https://github.com/arihantcodes/spectrum-ui
Categories
- Commerce Components
- React Commerce Components
- Tailwind CSS Commerce Components
- Animated Commerce Components
- Coupon Components
- Game Components
- React Game Components
- Tailwind CSS Game Components
- Animated Game Components
- Widget Components
- React Widget Components
- Tailwind CSS Widget Components