Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/react-ant-input-number
Input number for react.
https://github.com/afeiship/react-ant-input-number
ant antd input number-spinner react
Last synced: about 17 hours ago
JSON representation
Input number for react.
- Host: GitHub
- URL: https://github.com/afeiship/react-ant-input-number
- Owner: afeiship
- License: mit
- Created: 2018-06-20T07:27:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-06T03:34:01.000Z (almost 4 years ago)
- Last Synced: 2025-01-14T21:50:40.739Z (24 days ago)
- Topics: ant, antd, input, number-spinner, react
- Language: JavaScript
- Size: 433 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# react-ant-input-number
> Input number for react.[![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-ant-input-number
```## properties
| Name | Type | Required | Default | Description |
| --------- | ------ | -------- | ------- | ------------------------------------- |
| className | string | false | - | The extended className for component. |
| onChange | func | false | noop | The change handler. |## usage
1. import css
```scss
@import "~@jswork/react-ant-input-number/dist/style.css";// or use sass
@import "~@jswork/react-ant-input-number/dist/style.scss";// customize your styles:
$react-ant-input-number-options: ()
```
2. import js
```js
import ReactDemokit from '@jswork/react-demokit';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactAntInputNumber from '@jswork/react-ant-input-number';
import './assets/style.scss';class App extends React.Component {
handleChange = (e) => {
console.log(e.target.value);
};render() {
return (
`${value}%`}
parser={(value) => value.replace('%', '')}
onChange={this.handleChange}
/>
);
}
}ReactDOM.render(, document.getElementById('app'));
```
## documentation
- https://afeiship.github.io/react-ant-input-number/## license
Code released under [the MIT license](https://github.com/afeiship/react-ant-input-number/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/react-ant-input-number
[version-url]: https://npmjs.org/package/@jswork/react-ant-input-number[license-image]: https://img.shields.io/npm/l/@jswork/react-ant-input-number
[license-url]: https://github.com/afeiship/react-ant-input-number/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-ant-input-number
[size-url]: https://github.com/afeiship/react-ant-input-number/blob/master/dist/react-ant-input-number.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/react-ant-input-number
[download-url]: https://www.npmjs.com/package/@jswork/react-ant-input-number