1.0.2 • Published 2 years ago
@sky790312/react-scratch-off v1.0.2
@sky790312/react-scratch-off
Installation
yarn add @sky790312/react-scratch-off
Usage
import { ScratchOff } from '@sky790312/react-scratch-off';
<ScratchOff
width={width}
height={height}
coverImgSrc={coverImgSrc}
handleReveal={handleReveal}
revealPercentage={revealPercentage}
>
</ScratchOff>
Check the playground sample code.
License
MIT Licensed.