1.0.1 • Published 7 years ago
react-elastic-input v1.0.1
react-elastic-input
A React component to render input elements that grow as their content grows
Usage
Install react-elastic-input from npm:
npm install react-elastic-input --saveand then use it in your app:
import ElasticInput from 'react-elastic-input';
function MyComponent() {
return <ElasticInput placeholder="type..." />;
}Props
You can specify all props that an input element accepts. These will be passed as props to the input element. react-elastic-input supports the following types:
type- The input type, one of['text', 'email', 'password', 'search', 'tel', 'url'].