I am building a Blazor (Server) EditForm which contains an InputTextArea. By default, it looks like the InputTextArea creates a textArea with 2 rows, but I would prefer 4 rows for this specific application.
How do you set the number of rows for a Blazor InputTextArea?
You can simply add the rows attribute like below.
<InputTextArea @bind-Value="@prop" rows="4"></InputTextArea>
It does not require any C# as this is just html.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With