Skip to content

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

Open
@leomayer

Description

@leomayer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/form-fieldfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions