# Validation Icons

The TextBox enables you to display icons indicating successful and erroneous processes based on different conditions or validation.

## Built-In Validation Icons

To render the built-in validation icons, use the [`showSuccessIcon`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textboxcomponent#showsuccessicon) and [`showErrorIcon`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textboxcomponent#showerroricon) properties which accept values of type [`IconShowOptions`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/iconshowoptions).

The possible values are:

* `initial`—Requires a form-bound TextBox component to run `valid`, `invalid`, `touched`, and `dirty` state checks.
* `boolean`—Renders validation icons based on conditions set by the developer.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/textbox/validation/source.txt)

## Changing the Validation Icons

You can replace the default validation icons with custom ones by using the [`successSvgIcon`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textboxcomponent#successsvgicon) and [`errorSvgIcon`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textboxcomponent#errorsvgicon) properties for SVG icons.

The following example demonstrates how to replace the default validation icons with Font Awesome SVG icons.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/textbox/validation-icons/custom-svg-icons/source.txt)

If you prefer to use `font` icons and have Kendo UI for Angular configured to use them (as outlined in the [Icon Settings](https://www.telerik.com/kendo-angular-ui/components/icons/icon-settings#using-font-icons) documentation), you can specify them using the [`successIcon`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textboxcomponent#successicon) and [`errorIcon`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textboxcomponent#erroricon) properties.

The following example demonstrates how to replace the default validation icons with Font Awesome Font icons.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/textbox/validation-icons/custom-font-icons/source.txt)

## Suggested Links

* [Adding a Custom SVG Icon](https://www.telerik.com/kendo-angular-ui/components/icons/svgicon/custom)
* [API Reference of the TextBox](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textboxcomponent)
