Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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