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

Blazor TextBox is a component for editing, displaying, or entering plain text on forms to get. usernames, phone numbers, email, and more. This component is an advanced version of the HTML5 TextBox (input type text) component with icons, floating labels, different sizing, grouping, validation states, and more. It is available in HTML5/CSS version and JavaScript version.


Blazor TextBox

The Blazor TextBox component provides a floating label with minimal configuration. It supports most of the features that are available in the pure HTML5/CSS version.


HTML5/CSS TextBox

The simple TextBox component renders using pure CSS and HTML. It supports all the essential features, such as input groups with icons, floating labels, multiline text, different sizing, validation states, and more.


Input group

Easily create input groups by prepending or appending icons, buttons, or text with floating labels . For example, you can prepend text with the dollar symbol ($) for price input or at sign (@) for usernames.


Floating label (placeholder text)

Floats placeholder text at the top of the input box with animation when the input receives focus or the input has a value. The floating label is also known as the Blazor input text placeholder and ensures that the input value and label are always visible.


Input sizing

The Blazor TextBox component has built-in sizing support (normal and small modes) to fit the input box’s size with sufficient padding and spacing.


Input validation with HTML forms

The Blazor TextBox component can validate the input value and apply the corresponding validation styles for success, error, and warning states used in most standard HTML forms.


Multiline TextBox

Blazor TextBox is capable of handling multiple lines of text with floating label that helps you to accept address, description, comments, feedback, and more.


Get and set text box value

Easily set or retrieve values in the Blazor TextBox component to process it. Enable a clear button to reset the input value.


Right-to-left (RTL) rendering

The Blazor TextBox component supports right-to-left rendering. Users can change the text direction and layout of the TextBox component from right to left. This improves user experience and accessibility for users of RTL languages.


Themes

The Blazor Text Box component has several built-in themes such as Tailwind CSS, Fluent, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, and High Contrast. Users can customize these built-in themes or create new themes by overriding Sass variables or using our Theme Studio application.

Developer-friendly APIs

Developers can control the appearance and behaviors of the Blazor Text Box component, including its floating label, using a rich set of APIs.


Blazor TextBox Code Example

Easily get started with the Blazor TextBox using a few simple lines of C# code example as demonstrated below. Also explore our Blazor TextBox Example that shows you how to render and configure the Blazor textbox.

@using Syncfusion.Blazor.Inputs

<SfTextBox Placeholder='First Name'></SfTextBox>

Other supported frameworks

TextBox is also available in JavaScript, Angular, React and Vue frameworks that are built from their own TypeScript libraries. Check out the different TextBox platforms from the links below,




Blazor Components – 85+ UI and DataViz Components

Frequently Asked Questions

  • Easily create input groups with icons, buttons, and validation messages.
  • Users can easily bind the textbox value.
  • Handle multiple lines of text (text area) with floating labels.
  • The Blazor Textbox component validates the input value and applies corresponding validation styles.
  • One of the best Blazor Textboxes 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 Textbox.

You can find our Blazor 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