# Sandbox.UI.Construct.PanelCreator.Icon

## Overload 1

```csharp
static IconPanel Icon(PanelCreator self, string icon, string classes = null)
```

Create and return an icon (panel) with given icon and optionally given CSS classes.

### Parameters

- `self` (`PanelCreator`)
- `icon` (`string`)
- `classes` (`string`), default `null`

### Returns

`IconPanel`

## Overload 2

```csharp
static IconPanel Icon(PanelCreator self, string icon, string classes = null)
```

Create and return an icon (panel) with given icon and optionally given CSS classes.

### Parameters

- `self` (`PanelCreator`)
- `icon` (`string`)
- `classes` (`string`), default `null`

### Returns

`IconPanel`

## Overload 3

```csharp
static IconPanel Icon(PanelCreator self, string icon, string classes = null)
```

Create and return an icon (panel) with given icon and optionally given CSS classes.

### Parameters

- `self` (`PanelCreator`)
- `icon` (`string`)
- `classes` (`string`), default `null`

### Returns

`IconPanel`

Declared in [Sandbox.UI.Construct.PanelCreator](/api/Sandbox.UI.Construct.PanelCreator).
Assembly: `Sandbox.Engine`.
