Blazor TextArea Overview

The Telerik Blazor TextArea component is a highly customizable multi-line text input area. It provides features like auto resizing based on the user input and events to respond to user actions.

Telerik UI for Blazor Ninja image

The TextArea component is part of Telerik UI for Blazor, a professional grade UI library with 100+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

Creating Blazor TextArea

  1. Add the <TelerikTextArea> tag to a Razor file.
  2. Set the Value parameter to a string object. It supports one-way and two-way binding.
  3. (optional) Set the AutoSize property to adjust the TextArea height based on the user input.

Basic TextArea with two-way value binding

<TelerikTextArea @bind-Value="@TextAreaValue" 
                 AutoSize="true" />

<p>TextArea value: @TextAreaValue</p>

@code {
    public string TextAreaValue { get; set; }


The TextArea component provides settings to control its appearance. Read more about the Blazor TextArea appearance settings.


The Blazor TextArea fires blur and value change events to respond to user actions. Read more about the Blazor TextArea events.

TextArea Parameters

The Blazor TextArea provides various parameters to configure the component:

Parameter Type and Default Value Description
Value string Get/set the value of the input, can be used for binding.
AutoComplete bool Maps to the autocomplete attribute of the HTML <textarea>.
Class string The custom CSS class to be rendered on the <span class="k-textarea"> element.
AutoSize bool Specifies if the TextArea will adjust its height based on the user input.
DebounceDelay int Specifies the time in milliseconds between the last typed symbol and the updating of the value. The default value is 150ms.
Enabled bool
Whether the TextArea is enabled.
Id string Renders as the id attribute on the <textarea> element, so you can attach a <label for="">.
Name string The name attribute of the HTML element. It is usually required so the AutoComplete will be honored by the browser.
Placeholder string A string that maps to the placeholder attribute of the HTML element. If a Label is defined, it will be shown instead of the placeholder when the input is not focused.
TabIndex Nullable<int> Maps to the tabindex attribute of the HTML element. You can use it to customize the order in which the inputs in your form focus with the Tab key.
Title string Maps to the title attribute of the HTML element. You can use it to add a tooltip.
ValidateOn ValidationEvent enum
Configures the event that will trigger validation (if validation is enabled). Read more at Validation Modes for Simple Inputs.
Width string The component width. See Dimensions. The Width parameter has no default value, but the theme applies a width: 100% style.

See the Input Validation article.

Next Steps

See Also

In this article