Installation
npx kinetic-ui-cli@latest add Props
Pass secret codes, cover scratch color, and brush radius properties.
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { ScratchCardReveal } from "@/components/creative/scratch-card-reveal";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { ScratchCardReveal } from "@/components/creative/scratch-card-reveal";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<ScratchCardReveal
code="example"
/>
</div>
);
}