fregante / fit-textarea

Automatically expand a <textarea> to fit its content, in a few bytes
https://npmjs.com/fit-textarea
MIT License
78 stars 2 forks source link

demo: Show a before/after comparison #13

Closed yashshah1 closed 3 years ago

yashshah1 commented 3 years ago

Currently, the demo website only shows how using a textarea with fit-textarea will look like. Possibly add a toggle switch so the difference is evidently visible?

fregante commented 3 years ago

I don't think it's something that can be easily shown like that. At first load, the only thing that would change is that a textarea would be shorter than the other one.

The demo invites you to type something in the field, which is when the module comes into play.