A scratch-off cover over any content you pass: drag to erase it, with a cover color or gradient, brush size, reveal threshold and an onReveal callback.
npx shadcn@latest add @01orbital/scratch-reveal
Loading the source for scratch-reveal…
Files
—
scratch-reveal
Configuration
Name
scratch-reveal
Type
UI
Description
A scratch-off cover over any content you pass: drag to erase it, with a cover color or gradient, brush size, reveal threshold and an onReveal callback.
Files
—
scratch-reveal
Configuration
Name
scratch-reveal
Type
UI
Description
A scratch-off cover over any content you pass: drag to erase it, with a cover color or gradient, brush size, reveal threshold and an onReveal callback.