Tabs#

marimo.tabs(tabs: dict[str, object]) Html#

Tabs of UI elements.

Examples.

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

Args.

  • tabs: a dictionary of tab names to tab content; strings are interpreted as markdown

Returns.

  • An Html object.