MatBlazor
MatBlazor copied to clipboard
MatTextField adjust rows when is a TextArea
Hi is there a way to set the 'rows' property of a text area in the MatTextField?
no, according to code
The best would be to auto-adjust the height.
I got this to work using the Attributes property i.e.
<MatTextField TextArea="true" @bind-Value="Text" TValue="string"
Attributes="@(new Dictionary<string, object>{ ["rows"] = 7 })" />
Tbh though I expected this to be on the InputAttributes property, but it's through the Attributes property source line here