Skip to content

single-line / multi-line hybrid input (multi-line triggered via shift+return)

Notifications You must be signed in to change notification settings

component/inputarea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

single-line / multi-line hybrid input (multi-line triggered via shift+return)

Resources

Stars

Watchers

Forks

Packages

No packages published