Tabs

TableTag Input

Underline, pills and enclosed, with keyboard navigation.

Everything at a glance.

Installation

pnpm add krz-ui

Usage

import { Tabs } from "krz-ui";
<Tabs variant="pills" items={[
  { value: "a", label: "Overview", content: <Overview /> },
  { value: "b", label: "Settings", content: <Settings /> },
]} />

API Reference

PropTypeDescription
itemsTabItem[]Tabs with value, label and content.
value / defaultValuestringControlled or initial active tab.
onValueChange(value: string) => voidCalled when the tab changes.
variant"underline" | "pills" | "enclosed"Visual style.
fullWidthbooleanStretch tabs to fill the row.
className / style / ref—All go to the outer element. See Customization.
classNames{ list?, tab?, icon?, panel? }Extra classes for inner parts.