Hacker News new | ask | show | jobs
by threatofrain 990 days ago
How about a textarea component that expands as needed to fit the content?
2 comments

It would be far more brutal to just limit all textareas to 30 characters and let the user suffer.
I get you're craking a joke, which made me laugh, but just in case you weren't aware the original meaning of "Brutalism" was from the French word "brut" or "raw". Think raw concrete, not "being brutal to someone".
This is the smallest/easiest trick to do what you need(see full code in the embedded Codebox): https://css-tricks.com/the-cleanest-trick-for-autogrowing-te...

You might have to figure out how to properly set it up in React