We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

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.


Number formats

Format a Blazor Numeric Textbox component with one of the number formats listed on MSDN or Custom numeric format strings. Through number formatting, you can achieve percentage and currency text box behavior.


Custom formats

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.


Number precision

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

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.


Blazor Numeric Textbox incremental step support

Incremental steps

Increment or decrement a value based on a predefined step value. This can help users input large values.


Form support and validation

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.


Blazor Numeric Textbox mobile number keypad support

HTML5 input type support

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.


Globalization

The Blazor Numeric Textbox component comes with built-in globalization support. It adapts to any supported culture through simple settings.


Right-to-left (RTL)

The component supports right-to-left (RTL) rendering for users working in right-to-left languages like Hebrew, Arabic, or Persian.


Web accessibility

  • Fully supports WAI-ARIA accessibility to work with screen readers and assistive devices.
  • Follows WAI-ARIA best practices for implementing keyboard interaction.
  • Follows the WCAG 2.0 standard in the design of the UI element visuals such as foreground color, background color, line spacing, text, and images.

Developer-friendly APIs

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.


Other supported frameworks

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,


Blazor Numeric TextBox Code Example

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>



Blazor Components – 85+ UI and DataViz Components

Frequently Asked Questions

  • Quick replacement of the number-type HTML input element.
  • Allows placing any symbol or text as a prefix or suffix to the input number format.
  • Increase or decrease the input value easily using the spin button.
  • One of the best Blazor Numeric Textbox components in the market that offers a feature-rich UI.
  • Simple configuration and API.
  • Supports all modern browsers.
  • Mobile-touch friendly and responsive.
  • Extensive demos, documentation, and videos to learn quickly and get started with Blazor Numeric Textbox.

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, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version Download Free Trial

Awards

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.

Up arrow icon
Live Chat Icon For mobile