> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/marimo-team/marimo/llms.txt
> Use this file to discover all available pages before exploring further.

# tabs

<Warning>
  `mo.tabs` is deprecated. Use `mo.ui.tabs` instead.
</Warning>

Tabs of UI elements.

## Usage

```python theme={null}
tab1 = mo.vstack([mo.ui.slider(1, 10), mo.ui.text(), mo.ui.date()])
tab2 = mo.vstack(
    [
        {
            "slider": mo.ui.slider(1, 10),
            "text": mo.ui.text(),
            "date": mo.ui.date(),
        }
    ]
)
tabs = mo.tabs({"Tab 1": tab1, "Tab 2": tab2})
```

## Signature

```python theme={null}
mo.tabs(
    tabs: dict[str, object]
) -> Html
```

## Parameters

<ParamField path="tabs" type="dict[str, object]" required>
  A dictionary of tab names to tab content; strings are interpreted as markdown.
</ParamField>

## Returns

<ParamField path="Html">
  An `Html` object.
</ParamField>

## Migration

To migrate to `mo.ui.tabs`, use the following pattern:

```python theme={null}
# Old (deprecated)
mo.tabs({"Tab 1": content1, "Tab 2": content2})

# New
mo.ui.tabs({"Tab 1": content1, "Tab 2": content2})
```
