# react-countingstar

> a component for slot count animation

Latest version **0.2.0** (published 2022-01-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-countingstar
pnpm add react-countingstar
yarn add react-countingstar
bun add react-countingstar
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2022-01-05 |
| First published | 2022-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 73.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sunwoo0706 |

## Links

- npm: https://www.npmjs.com/package/react-countingstar
- npm.io page: https://npm.io/package/react-countingstar

## Dependencies (1)

- [styled-reset](https://npm.io/package/styled-reset.md) ^4.3.4

## Recent versions

- 0.2.0 (latest) — 2022-01-05

## README

## React-Countingstar

> a component for slot count animation

You can install it at npm, yarn

```sh
npm install react-countingstar
```

```sh
yarn add react-countingstar
```

### Basic usage

```js
import { CountingStar } from 'react-countingstar';

function example () {
    return {
        <CountingStar
            cntNum={20040706}
            fontSize="4rem"
            time={6}
        />
    }
}
```

\* Be careful because the style can be destroyed by the discharge or overlapping css.

### Props

#### cntNum

A number to count

- type : number

#### fontSize

CountingStar text font-size

- type : number | [cssFontUnitType](https://gist.github.com/sunwoo0706/f5562efafa91f7d08d17e26341c850b2)

> if it is number, it'll be added "px"

#### time

CountingStar Animation Duration

- type : number

---
_Source: https://npm.io/package/react-countingstar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
