Tabs
Tabbed interface.
On this page
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items required | readonly TabsItem[] | None | Tab definitions |
defaultIndex | number | 0 | Initially active tab |
variant | "default" | "detail" | "default" | Visual style |
Example
ts
Tabs({
items: [
{ label: "Overview", content: Table({ source: overview() }) },
{ label: "Metrics", content: Card({ content: Value({ source: metrics(), field: "cpu" }) }) },
{ label: "Logs", link: "/logs" },
],
})Supporting types
TabsItem
export interface TabsItem {
label: string;
content: PageNode | readonly PageNode[];
link?: string;
}