I have been working with angular Material design and have implemented a Textarea element. However, I am facing an issue where the height of the Textarea is fixed and cannot be changed. I have tried various solutions without success. How can I adjust the size of the Textarea?
Even after modifying the CSS, the size remains the same and I am unable to change it.
Does anyone have any suggestions on how to adjust the height of the Textarea?
<mat-form-field appearance="outline" class="example-full-width">
<mat-label>Discription</mat-label>
<textarea matInput></textarea>
</mat-form-field>
I have also tried the following method which did not resolve the issue:
<mat-form-field>
<mat-label>Description</mat-label>
<textarea matInput formControlName="description" matTextareaAutosize matAutosizeMinRows=1 matAutosizeMaxRows=5></textarea>
</mat-form-field>
This is the current output from the code
https://i.sstatic.net/qjYTE.png
Desired Output