Skip to content

matthewmueller/grow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grow

Grow textareas without using a clone or ghost element.

Based off of: https://github.com/javierjulio/textarea-autosize.

Example

<textarea id="content"></textarea>
grow(content);
#content {
  box-sizing: border-box;
  max-height: 94px; /* optional */
  min-height: 31px;
}

Installation

$ component install matthewmueller/grow

API

grow(el)

Initializes a growing textarea

Run Example

make

License

MIT

About

Grow textareas without using a clone or ghost element.

Resources

Stars

Watchers

Forks

Packages

No packages published