Organize parallel views on one page with tabs(). Supports arrow-key navigation and optional lazy=True per-tab loading.
tabs()
lazy=True
<ComponentPreview title="Tabs">
{
"type": "tabs",
"items": [
"label": "Overview",
"children": [
{"type": "metric", "label": "Requests Today", "value": "18,420", "delta": "+9.4%"}
]
},
"label": "Configuration",
{"type": "key_value_list", "items": [{"label": "Model", "value": "gpt-4o"}, {"label": "Timeout", "value": "30s"}]}
"label": "Status",
{"type": "alert", "variant": "success", "message": "All 4 workers healthy."}
}
</ComponentPreview>
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
| Parameter | Type | Description |
|---|---|---|
| items | list[dict] | Each tab item has label and children (or load URL for lazy fetching). |
items
list[dict]
label
children
load
| lazy | bool | Defer mounting hidden tab bodies until first opened. |
lazy
bool