4 ms·
How about a textarea component that expands as needed to fit the content?
by threatofrain 3y ago
How about a textarea component that expands as needed to fit the content?
- kevinsync 3y agoIt would be far more brutal to just limit all textareas to 30 characters and let the user suffer.
- frereubu 3y agoI 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".
- deleted 3y ago[deleted]
- troupo 3y agoThis 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-textareas/ https://css-tricks.com/the-cleanest-trick-for-autogrowing-te... You might have to figure out how to properly set it up in React