components
components copied to clipboard
Inputfeat(Input - Textarea): Let the area grow with flexbox
Feature Description
The textarea
should grow flexible depending on the what space is available.
I'm aware that there exists the directive cdkTextareaAutosize
but this will let the textarea
grow depending on the input. Which I don't want to have since it grows infinitely and might be at the starting place too small.
Use Case
The textarea
should stretched over the whole height and not only to a small part - which is in fact only one line. I want to have some kind of dynamic approach - depending where I place the component.
Sample could be seen on Stackblitz.
I'm aware that I could style with inner CSS classes like I've asked on Stackoverflow. But this seems to fragile.
The main reason for this use case: I cannot use a regular textarea
since it won't handle mat-errors
smoothly for forms
.