ink-ui

๐Ÿ—‚๏ธ Tabs

Inline tab strip for grouped interactive screens.

<Tabs> renders an inline tab strip. Active tabs are bold and highlighted; inactive tabs are dimmed. Optional counts render beside labels.

import { Tabs } from "@kud/ink-ui";
import type { TabItem } from "@kud/ink-ui";

๐Ÿ”ง Props

PropTypeDescription
activeTActive tab value
itemsTabItem<T>[]Tabs to render

TabItem<T> shape

FieldTypeDescription
valueTStable tab identifier
labelstringVisible tab label
countnumberOptional count rendered in tabs

๐Ÿ’ก Examples

<Tabs
  active="open"
  items={[
    { value: "open", label: "Open", count: 3 },
    { value: "done", label: "Done", count: 7 },
  ]}
/>

On this page