@sky790312/react-scratch-off
Version:
React typescript scratch off component.
28 lines (20 loc) • 397 B
Markdown
# @sky790312/react-scratch-off
## Installation
```sh
yarn add @sky790312/react-scratch-off
```
## Usage
```sh
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.