Save $100 with our Black Friday deals!

Get $100 OFF with promo code BLACKFRIDAY2024 at checkout until November 30.

See Pricing

Still using Radzen Studio?
Achieve more with Radzen Blazor Studio

Radzen Blazor Studio is our new flagship product and vision of how rapid Blazor application development should be done.

Go to Radzen Blazor Studio

TextBox (Blazor)

This article demonstrates how to use the TextBox component. Check also the component guide and API reference.

TextBox Properties

Name Type Default Description
Name string ‘textbox’ + index suffix Unique name of the TextBox.
Value string/expression null TextBox value.
Placeholder string empty TextBox placeholder.
ReadOnly boolean/expression false Is TextBox read-only.
Disabled boolean/expression false Is TextBox disabled.
Visible boolean/expression true Is TextBox visible.
MaxLength integer null TextBox maximum characters.
Style string null In-line CSS style.

For more info about expressions please visit expressions in our documentation.

TextBox Events

Name Type Default Description
Change event null Change event of the TextBox. New value as event argument.

For more info about event actions please visit event actions in our documentation.

Blazor declaration

<RadzenTextBox MaxLength="5" Change="@TextBoxChanged" />