# Customize icons in the widget selector

## Overview

You control the icons that are displayed with each widget in the widget selector, using the following widget properties:

* `IconName`\
  Holds the name of the icon that you can choose from a list of icons provided by Sitefinity.\
  For example, `IconName="document"`
* `IconUlrl`\
  Using this property, you can provide a link to a custom image that you have downloaded.\
  For example, `IconUrl="/airplane.svg"`

> info **NOTE**: If you have both properties configured for a widget, the `IconUrl` property takes precedence over `IconName` property.

## Configure the icon of a custom widget

Perform the following:

1. Download the image that you want to use as an icon.

   > info  **NOTE**: The image must comply with the icon image requirements, listed below.
2. Upload the image in the `wwwroot` folder of your project.
3. Edit the `ViewComponent` of the widget by adding the link to the image in the following way:

   ```C#
   /// The view component for the All properties widget.

   [SitefinityWidget(Title = "All properties", Section = WidgetSections.CustomWidgets, IconUrl = "/airplane.svg")]
   [ViewComponent(Name = "AllProperties")]
   public class AllPropertiesViewComponent : ViewComponent
   {
     ...
   }
   ```
4. Save your changes and build your solution.

## Icon image requirements

The image that you want to use as custom widget icon must comply with the following:

* Be an SVG image format
* Be a monotone image
* Be 16x16, 24x24, or 40x40 pixels

### List of Sitefinity widget icons

You use the `IconName` property with the predefined icons provided by Sitefinity.

You can find the list in [Icons](https://sitefinitydesign.progress.com/design/icons) » *Editors Widgets Icons.*

## Change the icon of a built-in widget

You must override the default widget and then you can change the icon in the same way as for custom widgets.

The following sample displays the `IconName` property added to the *Document list* widget:

```C#
/// The view component for the Document list widget.

[SitefinityWidget(Title = "Document list", Order = 2, Section = WidgetSection.ContentLists, IconName = "document")]
[ViewComponent(Name = "SitefinityDocumentList")]
public class DocumentListViewComponent : ViewComponent
{
  ...
}
```

For more information, see [Extend the built-in widgets](https://www.progress.com/documentation/sitefinity-cms/extend-the-built-in-widgets).
