Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/grow
Grow textareas as users type
https://github.com/component/grow
Last synced: 13 days ago
JSON representation
Grow textareas as users type
- Host: GitHub
- URL: https://github.com/component/grow
- Owner: component
- Created: 2012-08-08T18:26:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-19T17:12:35.000Z (about 11 years ago)
- Last Synced: 2024-05-08T17:11:11.245Z (8 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# Grow
Grow textareas as the user types.
## Installation
```
$ npm install grow-component
```## API
### grow(el, [options])
```js
var el = document.querySelector('textarea');
var grow = require('grow');
grow(el, { max: 5 });
```## Options
- `max` (number) maximum rows
## License
MIT