---
title: "Icon"
---
# Icon

Defined in: [src/core/ui/icon.ts:22](https://github.com/xdan/jodit/blob/main/src/core/ui/icon.ts#L22)

### Constructor

**new Icon**(): `Icon`

#### Returns

`Icon`

### exists()

`static` **exists**(`name`): `boolean`

Defined in: [src/core/ui/icon.ts:48](https://github.com/xdan/jodit/blob/main/src/core/ui/icon.ts#L48)

Check if icon exist in store

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |

#### Returns

`boolean`

***

### get()

`static` **get**(`name`, `defaultValue?`): `string`

Defined in: [src/core/ui/icon.ts:55](https://github.com/xdan/jodit/blob/main/src/core/ui/icon.ts#L55)

Return SVG icon

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `name` | `string` | `undefined` |
| `defaultValue` | `string` | `'<span></span>'` |

#### Returns

`string`

***

### set()

`static` **set**(`name`, `value`): *typeof* `Icon`

Defined in: [src/core/ui/icon.ts:62](https://github.com/xdan/jodit/blob/main/src/core/ui/icon.ts#L62)

Set SVG in store

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |
| `value` | `string` |

#### Returns

*typeof* `Icon`

***

### makeIcon()

`static` **makeIcon**(`jodit`, `icon`): [`CanUndef`](../modules/types.html#canundef)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

Defined in: [src/core/ui/icon.ts:72](https://github.com/xdan/jodit/blob/main/src/core/ui/icon.ts#L72)

Make icon html element

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `jodit` | [`IViewBased`](../interfaces/types.IViewBased.html) |
| `icon` | [`IUIIconState`](../interfaces/types.IUIIconState.html) |

#### Returns

[`CanUndef`](../modules/types.html#canundef)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>
