# Sandbox.UI.Popup.AddOption

## Overload 1

```csharp
Panel AddOption(string text, System.Action action = null)
```

Add an option to this popup with given text and click action.

### Parameters

- `text` (`string`)
- `action` (`System.Action`), default `null`

### Returns

`Panel`

## Overload 2

```csharp
Panel AddOption(string text, string icon, System.Action action = null)
```

Add an option to this popup with given text, icon and click action.

### Parameters

- `text` (`string`)
- `icon` (`string`)
- `action` (`System.Action`), default `null`

### Returns

`Panel`

Declared in [Sandbox.UI.Popup](/api/Sandbox.UI.Popup).
Assembly: `Sandbox.Engine`.
