react-textinput-field
React package to render input field with floating label.
Install
npm install --save react-textinput-field
Usage
import React Component from 'react';import TextInput from 'react-textinput-field'; let namevalidations = rule: "-" message: "the field should not be empty" rule: "^.{6,}$" message: "Length sould be more than 6" { ; thisstate = } { this } { return <div> <TextInput = = = = /> </div> }
Screenshot
TODO
- Add accesibility tags
- Support regex in validation message
- Display error message on Blur
- Update example with grid and mow view
- Update documenation of the component
- Add textarea element
- Add Rule utils with predefined Regex and min/max length function
- IsAlphaNumeric
- minLength()
- maxLength()
- Number
- Url
License
MIT © binodswain