# TreeView Icons

You can add [Telerik Font or SVG icons](https://www.telerik.com/blazor-ui/documentation/common-features/icons) to the TreeView items. The component also supports custom icons.

To use TreeView item icons, define a property in the component model class and assign the property name to the `IconField` parameter of the respective `TreeViewBinding`.

The model property can hold:

* A property of the static `SvgIcon` class;
* A member of the `FontIcon` enum;
* A `string` that is a CSS class for a custom icon.

If the icon property name in the TreeView model is `Icon`, there is no need to set the `IconField` parameter.

To select an SVG icon variant for each item, set `IconVariantField` on the `TreeViewBinding` to the model property name that holds the variant name. The default name is `IconVariant`. See [SVG icon variants](https://www.telerik.com/blazor-ui/documentation/common-features/icons#use-svg-icon-variants) and [TreeView Data Binding](https://www.telerik.com/blazor-ui/documentation/components/treeview/data-binding/overview).

> Make sure to [register `font-icons.css` if using Telerik font icons](https://www.telerik.com/blazor-ui/documentation/common-features/icons#font-icon-stylesheet).

> caption How to use icons in the Telerik TreeView

<demo metaUrl="client/treeview/icons/example-1/" height="420"></demo>

## See Also

* [TreeView Overview](https://www.telerik.com/blazor-ui/documentation/components/treeview/overview)
