react-elastic-input

1.0.1 • Public • Published

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 --save

and 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'].

Readme

Keywords

none

Package Sidebar

Install

npm i react-elastic-input

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

27.1 kB

Total Files

7

Last publish

Collaborators

  • spyros.io