Skip to content

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

varinputarea=require('inputarea');varel=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

13 stars

Watchers

7 watching

Forks

Releases

Packages

Contributors

Languages