Progress Telerik UI for Blazor

Blazor TextBox

  • The Blazor TextBox component is a highly versatile text input, featuring password entry, label and placeholder customization, immediate validation integration and more options.
  • This component is part of the largest truly native Blazor component suite - Telerik UI for Blazor designed to perfectly fit in any app’s requirement.
  • The Blazor UI suite also comes with professionally designed themes enabled with a flip of a switch, document processing library, rich docs & demos to help you get started in no time.
Telerik UI for Blazor Suite
Nasa, Visa, Microsoft Fox, Samsung, IBM World Bank Group, Volvo
  • Blazor TextBox Overview

    The TextBox component allows you to display, enter and edit plain text in Blazor forms. You can completely customize the TextBox component using its built-in features: CSS Class for styling, Enabled (controls whether the input is enabled/disabled), Width, Value (getting and setting of value), Label (rendered text with additional information about the TextBox) and built-in validation within EditFrom. The TextBox component works in both WebAssembly (WASM) and Server-side Blazor apps.

    Example of Blazor TextBox Component with Floating Label.

     

    Telerik UI for Blazor Textbox Overview
  • TextBox Validation with Forms

    The Telerik UI for Blazor suite supports and integrates seamlessly into Blazor's Forms and Validation infrastructure. All Telerik UI for Blazor Input components (including simple inputs such as TextBox, Numeric TextBox and DateInput) work out of the box when placed inside an EditForm, respond to EditContext changes and provide default invalid styles. When you need to validate user input, the Telerik TextBox for Blazor is the perfect match.

    Example of user input validation with Blazor TextBox component.

    Telerik UI for Blazor Textbox Validation
  • TextBox Events for Handling User Input

    The TextBox exposes OnChange and ValueChanged events to let you handle user input and perform the necessary flow of logic in your code. The component also fires the OnBlur event which is triggered when it loses focus. You have full control the user actions with the TextBox component – from capturing user keystrokes to confirmation of the changed TextBox values.

    Example of Blazor TextBox two-way binding.

    Telerik UI for Blazor Events
  • Blazor TextBox Additional Parameters

    There are several more minor parameters of a Telerik UI for Blazor TextBox component which control a variety of functionalities:

    • AutoComplete – instructs the browser whether to provide autocompletion for this field and if so, how to do it exactly
    • InputMode – instructs the browser what’s the best way to let the user enter his text. For example, the virtual keyboard on mobile devices is altered depending on whether the user is typing in an URL or an email.
    • PlaceHolder – used to control the placeholder value of the input element in the browser.
    • TabIndex – controls the ordering in which the browser visits elements on the page when the user presses Tab
  • Blazor TextBox Password

    The TextBox can also be used to input passwords in login and registration forms. Switching between a plain-text TextBox and one used for entering passwords is as easy as enabling the Password attribute on the element.

    Telerik UI for Blazor TextBox Password Property
  • Blazor TextBox TabIndex

    The Blazor TextBox component, just like all other Telerik UI for Blazor input components, supports keyboard navigation to switch between components thanks to the HTML TabIndex property. Pressing Tab will normally focus the next available input component, the same way your users are accustomed to when standard HTML inputs are used. Having the TabIndex setting lets you customize that order.
  • TextBox Theming

    The Telerik Blazor TextBox has several built-in themes such as Default (our own styling), Material (based on the Material Design guidelines) and Bootstrap (which looks like the Bootstrap styling to integrate better). You can easily customize any of out-of-the-box themes with a few lines of CSS, or create new theme to match your colors and branding by using the the Telerik Saas ThemeBuilder application.

    Telerik UI for Blazor TextBox Themes

Next Steps

Launch demos

See Telerik UI for Blazor in action and check out how much it can do out-of-the-box.

Download free trial

Try Telerik UI for Blazor with dedicated technical support.