Blazor Numeric TextBox - Range Validation
This example demonstrates the range validation functionalities of the Numeric Textbox. Change the Min, Max and Step values and click on apply button to change the property values in Numeric TextBox.
The Numeric Textbox has the options to restrict the input value between a specific range using the Min, Max, and StrictMode properties.
When you enable the StrictMode property, the value will automatically change within a range on passing the out-of-range values. When you disable the StrictMode property, the Numeric Textbox component allows the out-of-range value with the highlighted textbox to indicate the given value is wrong.
In this demo, numeric textbox is restricted between 10 to 100 through the Min and Max properties. So you can enter only the value between this range.
See also