Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ohanhi/autoexpand
Autoexpanding textarea in Elm
https://github.com/ohanhi/autoexpand
elm textarea
Last synced: about 2 months ago
JSON representation
Autoexpanding textarea in Elm
- Host: GitHub
- URL: https://github.com/ohanhi/autoexpand
- Owner: ohanhi
- License: bsd-3-clause
- Created: 2017-03-18T20:23:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T20:18:09.000Z (over 6 years ago)
- Last Synced: 2024-05-08T23:31:38.680Z (8 months ago)
- Topics: elm, textarea
- Language: Elm
- Size: 14.6 KB
- Stars: 15
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
- [Runnable version on Ellie](https://ellie-app.com/35rzD8CvHh9a1/1)
- [Source code on GitHub](https://github.com/ohanhi/autoexpand/blob/master/examples/Simple.elm)