Answer:
The CssClass property can be used to override the component's default styles. Please find the code snippet below,
<SfNumericTextBox Width="200px" TValue="int" CssClass="CustomCSS" Format="##.##" FloatLabelType="FloatLabelType.Auto"
Placeholder='Int' @bind-Value="@model.I" Min="50" Max="60" />
@code {
public class TestObj
{
public int I { get; set; }
= 50;
}
public TestObj model = new TestObj();
}
|