Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Rows Attribute for Blazor (Server) InputTextArea

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?

like image 614
thomasagarza Avatar asked May 08 '26 01:05

thomasagarza


1 Answers

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.

like image 104
Umair Avatar answered May 10 '26 18:05

Umair



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!