1.0.0 • Published 4 years ago
@jswork/react-digital-numeric v1.0.0
react-digital-numeric
Numeric & time & date use react digital.
installation
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
import css
@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: ()
import 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 ( <ReactDemokit className="p-3 app-container" url="https://github.com/afeiship/react-digital-numeric"> <ReactDigitalNumeric className="mb-2" value="2018-12-08" /> <hr /> <ReactDigitalNumeric className="mb-2" value="14:20:12.120" /> <hr /> <ReactDigitalNumeric className="mb-2" flat value="2018-12-08" /> <hr /> <ReactDigitalNumeric className="mb-2" flat value="14:20:12.120" /> </ReactDemokit> ); } } ReactDOM.render(<App />, document.getElementById('app'));
documentation
license
Code released under the MIT license.
1.0.0
4 years ago