React component for Input
npm i @react-ag-components/input --save
import Input from '@react-ag-components/input'
<Input
label="Weight amount"
id="weight-amount"
value={this.state.weightAmount}
onChange={this.onChange('weightAmount')} />
| Property | Default | Description |
|---|---|---|
| id | same as label | |
| type | "text" | |
| value | "" | |
| onBlur | function | |
| onChange | function | |
| label | "" | |
| error | "" |
Get the repository
git clone https://github.com/alphillips/input.git
Update dependencies
npm install
Run the project
npm start
npm run build -- --copy-files
npm publish --access public