beercss / beercss

Build material design interfaces in record time... without stress for devs... πŸΊπŸ’›
https://www.beercss.com
MIT License
940 stars 47 forks source link

Autoresize Textarea #276

Closed SuperDOS closed 3 weeks ago

SuperDOS commented 2 months ago

Would it be possible to resize the textarea inputs similiar to what materialize-css does?

leonardorafael commented 2 months ago

Yes we can do that. Today the JS file of Beer CSS is optional and if you use it, you can do the job with almost ZERO JS in your project. We will try to add this on next release.

guidouil commented 2 months ago

I would love that to for a chat interface with AI ;)

SuperDOS commented 1 month ago

noticed now when version 123 of chrome is released you can use the new css attribute field-sizing: textarea { field-sizing: content; }

https://github.com/tkent-google/explainers/blob/main/form-sizing.md