# ui.root.insert

<br />

Inserts a widget into to the root panel at the specified index.

<br />

Returns the root panel.

| Usage | Returns |
|---|---|
| `ui.root.insert(index, widget)` | ui.Panel |

| Argument | Type | Details |
|---|---|---|
| `index` | Number | The index at which to insert the widget. |
| `widget` | ui.Widget | The widget to insert. |