Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
single-line / multi-line hybrid input (multi-line triggered via shift+return)
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
example.html
index.js

Readme.md

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):

$ component install component/inputarea

Example

var inputarea = require('inputarea');
var el = document.querySelector('textarea');

inputarea(el).on('input', function(str){
  console.log(str);
});

License

MIT

Something went wrong with that request. Please try again.