https://github.com/spirosikmd/react-elastic-input
A React component to render input elements that grow as their content grows
https://github.com/spirosikmd/react-elastic-input
component elastic-input react
Last synced: about 2 months ago
JSON representation
A React component to render input elements that grow as their content grows
- Host: GitHub
- URL: https://github.com/spirosikmd/react-elastic-input
- Owner: spirosikmd
- License: mit
- Created: 2018-08-02T21:53:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T19:57:06.000Z (over 2 years ago)
- Last Synced: 2025-02-25T16:07:25.067Z (2 months ago)
- Topics: component, elastic-input, react
- Language: JavaScript
- Homepage: https://react-elastic-input.netlify.com/
- Size: 1.77 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# react-elastic-input
[![Build Status][build-badge]][build]
[![version][version-badge]][package]
[![PRs Welcome][prs-badge]](http://makeapullrequest.com)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:
```jsx
import ElasticInput from 'react-elastic-input';function MyComponent() {
return ;
}
```## 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']`.
[version-badge]: https://img.shields.io/npm/v/react-elastic-input.svg?style=flat-square
[package]: https://www.npmjs.com/package/react-elastic-input
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[build-badge]: https://circleci.com/gh/spirosikmd/react-elastic-input.svg?style=svg
[build]: https://circleci.com/gh/spirosikmd/react-elastic-input