components icon indicating copy to clipboard operation
components copied to clipboard

Inputfeat(Input - Textarea): Let the area grow with flexbox

Open leomayer opened this issue 2 months ago • 0 comments

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. Bildschirmfoto vom 2024-04-17 17-22-02

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.

leomayer avatar Apr 19 '24 07:04 leomayer