<div style="display: grid; grid-template-columns: repeat(3, 50px); gap: 10px;">
@for (int i = 0; i < a.Length; i++)
{
<input type="text" style="width: 50px" placeholder="@i" @bind-value="a[i]" @key="i"/>
}
</div>
@code {
private string[] a = new string[9];
}
<div style="display: grid; grid-template-columns: repeat(3, 50px); gap: 10px;">
@for (int i = 0; i < a.Length; i++)
{
<input type="text" style="width: 50px" placeholder="@i" @bind-value="a[i]" @key="i"/>
}
</div>
@code {
private string[] a = new string[9];
}