# Icon
Icon component for displaying various icons.
## Basic Usage
Set the `name` attribute to use the built-in icons.
```html
```
## Icon Color
Set the `color` attribute to customize the icon color.
```html
```
## Icon Size
Set the `size` attribute to customize the icon size.
```html
```
## Custom Icon
Wot UI allows you to use custom icons in two ways:
### 1. Using Custom Font Icons
First, you need to define your own font icon library, and then set the `class-prefix` attribute to use your custom font icons.
```html
```
### 2. Using Image Icons
Set the `custom` attribute to use image icons, and set the `name` attribute to the image URL.
```html
```
## Icon List
## Attributes
| Attribute | Description | Type | Default | Version |
|---------|---------|---------|---------|------|
| name | Icon name | string | - | - |
| color | Icon color | string | - | - |
| size | Icon size | string | - | - |
| class-prefix | Custom icon class prefix | string | wd-icon | - |
| custom | Whether to use custom image icon | boolean | false | - |
## Events
| Event Name | Description | Parameters | Version |
|---------|---------|---------|------|
| click | Triggered when the icon is clicked | event: Event | - |
## External Style Classes
| Class Name | Description | Version |
|---------|---------|------|
| custom-class | Root node custom class | - |