Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/inputarea
single-line / multi-line hybrid input (multi-line triggered via shift+return)
https://github.com/component/inputarea
Last synced: 13 days ago
JSON representation
single-line / multi-line hybrid input (multi-line triggered via shift+return)
- Host: GitHub
- URL: https://github.com/component/inputarea
- Owner: component
- Created: 2013-11-06T01:40:33.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-24T00:04:09.000Z (about 11 years ago)
- Last Synced: 2024-05-08T17:11:26.463Z (8 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 13
- Watchers: 9
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# inputarea
Cross between a textarea and text input. The textarea behaves like
a single-line input unless the return key is used. A "multiline" classname
is added to aid styling, for example you may wish to expand the field height.## Installation
Install with [component(1)](http://component.io):
$ component install component/inputarea
## Example
```js
var inputarea = require('inputarea');
var el = document.querySelector('textarea');inputarea(el).on('input', function(str){
console.log(str);
});
```## License
MIT