kgierke / formkit-inputs

Collection of inputs for FormKit.
https://kgierke.github.io/formkit-inputs/
MIT License
13 stars 1 forks source link

Create "auto-growing" textarea input #4

Open kgierke opened 2 years ago

kgierke commented 2 years ago

Create an automatically resizing textarea component based on this solution: https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/

fenilli commented 2 years ago

I think this feature could use https://github.com/jackmoore/autosize simple library for that case.

kgierke commented 2 years ago

Thanks for the input, st first glance it looks like a bunch of JavaScript for something which apparently can be solved anlogst purely with css. Not sure about browser compatibility so i definitely gonna have a look into this.

fenilli commented 2 years ago

I think JS would be more elegant of a solution, CSS is kinda of a pain to deal with, and can be broken by other parties using similar names by just overwriting.