SamProf / MatBlazor

Material Design components for Blazor and Razor Components
http://www.matblazor.com
MIT License
2.84k stars 386 forks source link

Feature: Tetarea Auto resize #571

Open kristof12345 opened 4 years ago

kristof12345 commented 4 years ago

Hi!

It'd be great to have an option to enable auto resize for Textarea. If you add a line, the height automatically adjusts. (In this mode the scrollbars should be also hidden.)

enkodellc commented 4 years ago

Have you seen this done elsewhere? Maybe submit a PR for it . "It'd be great" to have more contributors :)

kristof12345 commented 4 years ago

Yeah, the React version does this. https://material-ui.com/components/text-fields/ (See the "multiline" part.)

Through js it can be done with jquery: https://css-tricks.com/textarea-tricks/ But I don't know if it should be used with Blazor.