# react-digital-number

> A react component to show digital number

Latest version **1.0.8** (published 2023-01-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-digital-number
pnpm add react-digital-number
yarn add react-digital-number
bun add react-digital-number
```

## 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.8 |
| Published | 2023-01-30 |
| First published | 2020-06-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 33.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Fred |
| Maintainers | fred5377 |
| Keywords | react, components, digital, number |

## Links

- npm: https://www.npmjs.com/package/react-digital-number
- Repository: https://github.com/Fredxingxing/react-digital-number
- Homepage: https://github.com/Fredxingxing/react-digital-number#readme
- Issues: https://github.com/Fredxingxing/react-digital-number/issues
- npm.io page: https://npm.io/package/react-digital-number

## Dependencies (1)

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

## 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.8 (latest) — 2023-01-30
- 1.0.7 — 2022-01-31
- 1.0.6 — 2022-01-31
- 1.0.5 — 2022-01-31
- 1.0.4 — 2020-06-23
- 1.0.3 — 2020-06-23
- 1.0.2 — 2020-06-18
- 1.0.1 — 2020-06-17
- 1.0.0 — 2020-06-17

## README

# react-digital-number
A react component to show digital number

### Demo: [codepen](https://codepen.io/fredxingxing/pen/BajQLxx) | src example

## Use and Setup

`npm install --save react-digital-number`

#### Demo.js

```js
import DigitalNumber from 'react-digital-number'

const Demo = props => (
  <div>
    <DigitalNumber 
       nums={nums}  // nums is the number your wanna show (defualt '123'
       color:'#FF0000' // the active line color of number
       unActiveColor: '#22221e' // the unactive line color of number
       backgroundColor: '#000' // digital number container's background color
       transform 
       transformDuration={600}     
    />
  </div>
)
```
## Documentation

| Name           | Description                                              | Type     | Default         |
| :------------- | :------------------------------------------------------- | :------- | :-------------- |
| nums           | show value                                               | String   | '123'           |              
| color          | the active line color of number                          | String   | '#FF0000'       |
| unActiveColor  | the unActive line color of number                        | String   | '#22221e'       |
| backgroundColor| digital number container's background color              | String   | '#000'          |
| width          | digital container's width                                | String   | '100%'          |
| height         | digital container's height                               | String   | '100%'          |
| transition     | digital container's transition                           | String   | 'none'          |
| transform      | digital number transform 0 to value                      | Boolean  | false           |
| transformDuration  |  the duration of transform                           | Number   |  600            |


![Image text](https://raw.githubusercontent.com/Fredxingxing/react-digital-number/master/images/demo.png)

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