https://github.com/afeiship/react-digital-numeric
Numeric & time & date use react digital.
https://github.com/afeiship/react-digital-numeric
digital numeric react
Last synced: 12 months ago
JSON representation
Numeric & time & date use react digital.
- Host: GitHub
- URL: https://github.com/afeiship/react-digital-numeric
- Owner: afeiship
- License: mit
- Created: 2018-06-23T06:42:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-06T04:17:48.000Z (about 5 years ago)
- Last Synced: 2025-03-17T22:55:49.496Z (about 1 year ago)
- Topics: digital, numeric, react
- Language: JavaScript
- Size: 134 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# react-digital-numeric
> Numeric & time & date use react digital.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```shell
npm install -S @jswork/react-digital-numeric
```
## properties
| Name | Type | Required | Default | Description |
| --------- | ------ | -------- | ------- | ------------------------------------- |
| className | string | false | - | The extended className for component. |
| value | any | false | - | Default value. |
| onChange | func | false | - | The change handler. |
| flat | bool | false | - | If digit equal width. |
## usage
1. import css
```scss
@import "~@jswork/react-digital-numeric/dist/style.css";
// or use sass
@import "~@jswork/react-digital-numeric/dist/style.scss";
// customize your styles:
$react-digital-numeric-options: ()
```
2. import js
```js
import ReactDemokit from '@jswork/react-demokit';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactDigitalNumeric from '@jswork/react-digital-numeric';
import './assets/style.scss';
class App extends React.Component {
render() {
return (
);
}
}
ReactDOM.render(, document.getElementById('app'));
```
## documentation
- https://afeiship.github.io/react-digital-numeric/
## license
Code released under [the MIT license](https://github.com/afeiship/react-digital-numeric/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/react-digital-numeric
[version-url]: https://npmjs.org/package/@jswork/react-digital-numeric
[license-image]: https://img.shields.io/npm/l/@jswork/react-digital-numeric
[license-url]: https://github.com/afeiship/react-digital-numeric/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-digital-numeric
[size-url]: https://github.com/afeiship/react-digital-numeric/blob/master/dist/react-digital-numeric.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/react-digital-numeric
[download-url]: https://www.npmjs.com/package/@jswork/react-digital-numeric