npm.io
0.0.2 • Published 9 years ago

react-md-input

Licence
MIT
Version
0.0.2
Deps
4
Vulns
0
Weekly
0

react-md-input

React Component Material Design Input.

Installation

$ yarn add react-md-input

Example

import Input from 'react-md-input';

onChange(event) {
  this.setState({
    name: event.target.value,
  });
}

<Input
  label="Name"
  type="text"
  value={this.state.name}
  onChange={ (e) => 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