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.
mo.tabs is deprecated. Use mo.ui.tabs instead.
Tabs of UI elements.
Usage
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
mo.tabs(
tabs: dict[str, object]
) -> Html
Parameters
tabs
dict[str, object]
required
A dictionary of tab names to tab content; strings are interpreted as markdown.
Returns
Migration
To migrate to mo.ui.tabs, use the following pattern:
# Old (deprecated)
mo.tabs({"Tab 1": content1, "Tab 2": content2})
# New
mo.ui.tabs({"Tab 1": content1, "Tab 2": content2})