Components/Navigation/Tabs
component

Tabs<K extends string = string>

src/components/navigation.tsx

Import

import { Tabs } from "@ossrandom/design-system";

Examples

Default

↗ Playground

Variants

↗ Playground

Sizes

↗ Playground

API

extends BaseProps

PropType
items required readonly TabItem<K>[]
value K
defaultValue K
variant "line" | "card" | "segment" | "pill"
size Size
onChange (key: K) => void; readonly scrollable?: boolean;