Autoexpanding textarea in Elm
Elm
Switch branches/tags
Latest commit f682446 Jun 16, 2017 @ohanhi Bump version
Permalink
Failed to load latest commit information.
examples Add support for custom textareas Jun 15, 2017
src Add support for custom textareas Jun 15, 2017
.gitignore Initial commit Mar 18, 2017
LICENSE Initial commit Mar 18, 2017
README.md Update Ellie link May 2, 2017
elm-package.json Bump version Jun 16, 2017

README.md

AutoExpand

Autoexpanding textarea in Elm.

This is a simple reusable view for those times when you want to show a small text box to begin with, but want the space to grow as the user types in more stuff.

For now, the box can only grow but not shrink back to a smaller size.

For packaging this, I took a lot of influence from the evancz/elm-sortable-table package. This means the same two general rules apply:

  • Always put AutoExpand.State in your model.
  • Never put AutoExpand.Config in your model.

Usage

Take a look at the example to get a good idea of how to use this.