The Blazor Numeric Textbox component is a quick replacement for the number-type HTML input element. It’s used to get number inputs from users. It has several out-of-the-box features such as number format support, precision, and spin buttons.
The Blazor Numeric Textbox component supports any custom format. A custom format allows you to place any symbol or character as a prefix or suffix to the input number format.
You can control the precision of the input number value. And you can limit the precision to any length while the value is being typed.
Spin buttons provide a flexible option for interacting with the Numeric Textbox. So you can increase or decrease the input value easily.
You can customize the appearance of the spin buttons. And you can hide the buttons from the component if they are not needed.
Increment or decrement a value based on a predefined step value. This can help users input large values.
The Blazor Numeric Textbox component has min-max range validation support. This prevents your users from entering out-of-range values.
You can integrate the form validator plugin to perform any custom validation.
The Blazor Numeric Textbox component can be extended from the HTML5 tel input. This opens the numeric keypad on mobile devices, which makes it easy to enter numeric values.
The Blazor Numeric Textbox component comes with built-in globalization support. It adapts to any supported culture through simple settings.
The component supports right-to-left (RTL) rendering for users working in right-to-left languages like Hebrew, Arabic, or Persian.
The Blazor Numeric Textbox component has a rich set of developer-friendly APIs. So you can handle all UI elements and behaviors of the control to provide the best experience to your end users.
Numeric Textbox is also available in JavaScript, Angular, React and Vue frameworks that are built from their own TypeScript libraries. Check out the different Numeric Textbox platforms from the links below,
Easily get started with the Blazor Numeric TextBox using a few simple lines of C# code example as demonstrated below. Also explore our Blazor Numeric TextBox Example that shows you how to render and configure the Numeric TextBox in Blazor.
@page "/Numeric-TextBox/Default-Functionalities"
@using Syncfusion.Blazor.Inputs
@inherits SampleBaseComponent;
<div class="col-lg-12 control-section">
<div class="content-wrapper">
<div class="control-label">
Numeric TextBox
</div>
<SfNumericTextBox TValue="double?" Value=10></SfNumericTextBox>
<div class="control-label">
Percentage TextBox
</div>
<SfNumericTextBox TValue="double?" Format="p2" Value=0.5 Max=1 Min=0 Step=0.01></SfNumericTextBox>
<div class="control-label">
Currency TextBox
</div>
<SfNumericTextBox TValue="double?" Format="c2" Value=100></SfNumericTextBox>
</div>
</div>
<style>
.content-wrapper {
width: 35%;
margin: 0 auto;
min-width: 185px;
}
.control-label {
padding: 24px 0px 10px 0px;
font-size: 12px;
}
</style>
You can find our Blazor Numeric TextBox demo here.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.