# Sandbox.UI.Menu.AddWidget

```csharp
T AddWidget(T widget)
```

Add any panel as a row - a text entry, a slider, a heading. It's shown in the list like
an option but the menu leaves it alone.

### Parameters

- `widget` (`T`)

### Returns

`T`

Declared in [Sandbox.UI.Menu](/api/Sandbox.UI.Menu).
Assembly: `Sandbox.Engine`.
