# @clreddy21/react-scratchcard-with-custom-imagesize

> React component for displaying scratch card with customizable image size in your web app.

Latest version **1.0.1** (published 2021-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @clreddy21/react-scratchcard-with-custom-imagesize
pnpm add @clreddy21/react-scratchcard-with-custom-imagesize
yarn add @clreddy21/react-scratchcard-with-custom-imagesize
bun add @clreddy21/react-scratchcard-with-custom-imagesize
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-11-19 |
| First published | 2021-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 88.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | C Lokesh Reddy |
| Maintainers | clreddy21 |
| Keywords | React, Scratchcard |

## Links

- npm: https://www.npmjs.com/package/@clreddy21/react-scratchcard-with-custom-imagesize
- Repository: https://github.com/clreddy21/react-scratchcard
- Homepage: https://github.com/clreddy21/react-scratchcard#readme
- Issues: https://github.com/clreddy21/react-scratchcard/issues
- npm.io page: https://npm.io/package/@clreddy21/react-scratchcard-with-custom-imagesize

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^15.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-11-19
- 1.0.0 — 2021-11-18

## README

# react-scratchcard

A react component for displaying scratch card in your web app.



## Installation

```
$ npm i @clreddy21/react-scratchcard-with-custom-imagesize
```

## Example

```javascript
import React from 'react';
import ScratchCard from 'react-scratchcard';

const settings = {
  width: 200,
  height: 200,
  image: 'image.jpg',
  finishPercent: 50,
  onComplete: () => console.log('The card is now clear!')
};

const Example = () =>
  <ScratchCard {...settings}>
    Congratulations! You WON!
  </ScratchCard>;
```

## Credits

Heavily inspired by [this pen by André Ruffert](https://codepen.io/andreruffert/pen/pvqly).

Image used in the example by [webtreats](https://www.flickr.com/photos/webtreatsetc/).

---
_Source: https://npm.io/package/@clreddy21/react-scratchcard-with-custom-imagesize · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
