UI for Blazor
The Telerik UI for Blazor TextArea component is the control to use when you expect the user to type multiline text for long inputs like notes, comments or descriptions. It shares many properties with the other text-input components in the suite like auto resizing, floating labels and a number of events.
See the Blazor TextArea demo
The AutoSize property will force the component to resize itself during keyboard input so that it takes just enough space to contain the text content but not any more than that.
Control the size of the Telerik UI for Blazor TextArea using the ResizeMode parameter. The component’s resize behavior can be modified through the available options:
Leverage the Rows and Columns parameters to effortlessly control the initial size of the Telerik UI for Blazor TextArea component. Both parameters map to the rows and columns attributes of the inner textarea element. If not configured – the size of the TextArea would be the auto one.
See the Telerik UI for Blazor TextArea Rows and Columns demo
Floating labels are important to creating modern UIs and are a part of all of our text input components. When enabled, the TextArea’s placeholder will float upwards and stop above the control for a sleek visual effect. If you don’t need this feature, you can always disable it and use a standard label attached to the TextArea. See how to implement a floating label on our demo page.
The TextArea component includes validation modes that enable you to define whether to activate validation on change, blur or while typing, allowing you to choose the most fitting for a given use case.
See Blazor TextArea validation demo.Elevate user interactivity leveraging the option for adding prefix and suffix adornments. These are custom items, usually an icon or button, inside the field before or after the input area. Typical prefix adornments are currency symbols or unit indicators, while suffix adornments are often used for password visibility toggles, formatting or clearing the input.
See Telerik UI for Blazor TextArea adornments demo
The two standard OnChange and ValueChanged are available with the TextArea Component:
The Telerik UI for Blazor TextArea has several built-in themes such as Default (our own styling), Material (based on the Material Design guidelines), Bootstrap (which looks like the Bootstrap styling to integrate better) and Fluent (based on Microsoft Fluent UI). 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 Telerik SASS ThemeBuilder application.
The Telerik UI for Blazor TextArea component supports right-to-left configuration. The RTL functionality is supported by most of our components to accommodate users who communicate in a right-to-left language script, such as Arabic and Hebrew.
Learn more in our Blazor Right-to-Left Support documentation