New to Kendo UI for Vue? Start a free 30-day trial

Adornments

The TextBox provides configuration properties for adding items as prefix and suffix adornments. The component can display both built-in and custom adornments. Below you can find more details about the different configuration options.

Built-In Adornments

Validation Icon

The TextBox component provides the showValidationIcon prop that can be used in a combination with the inputClass or the valid properties. Configuring a combination of these properties we can show a validation icon that marks the TextBox value as valid or invalid.

Example
View Source
Change Theme:

Loading Icon

You can display a loading icon in the TextBox by setting its showLoadingIcon property to true.

Example
View Source
Change Theme:

Clear button

You can display the built-in clear button inside the TextBox by setting its showClearButton property to true. The clear button will appear once there is a value inside the TextBox.

Example
View Source
Change Theme:

Suffix and Prefix Custom Adornments

Render custom Vue Components like Icon and Button as prefix and suffix to the TextBox and implement custom functionality on top of them.

Example
View Source
Change Theme:

Separator

To visually separate the specified adornments, you can add an InputSeparator.

Example
View Source
Change Theme:

Clear TextBox Value with Custom Solution

The TextBox can be reset by rendering a custom clickable component which controls its current value.

Example
View Source
Change Theme: