Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcnallydev/react-md-input
React Component Material Design Input.
https://github.com/mcnallydev/react-md-input
javascript jsx react
Last synced: 29 days ago
JSON representation
React Component Material Design Input.
- Host: GitHub
- URL: https://github.com/mcnallydev/react-md-input
- Owner: mcnallydev
- License: mit
- Created: 2017-09-29T02:48:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-07T05:35:45.000Z (over 7 years ago)
- Last Synced: 2024-08-09T14:57:53.979Z (5 months ago)
- Topics: javascript, jsx, react
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/react-md-input
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-md-input
React Component Material Design Input.
## Installation
$ yarn add react-md-input
## Example
```javascript
import Input from 'react-md-input';onChange(event) {
this.setState({
name: event.target.value,
});
}this.onChange(e) }
/>
```## Props
Name | Description | Default/Required | Type
------|-------------|----------|-----------
error | To show error message. | optional | string
label | To show label. | required | string
type | Input type attribute. | optional | string
value | Input value attribute. | required | string
pattern | Input value validation. | optional | string## Patterns
* patternDecimal
* patternInteger
* patternNumber