Tabs

A tabbed navigation component for organizing content into multiple panels with switchable views.

Installation

npx chilli@latest add tabs

Underline

Pill

Segmented

Sizes

Small

Medium

Large

API Reference

Tabs

PropTypeDefaultDescription
items{ label: string; value: string; icon?: ReactNode; rightIcon?: ReactNode }[]Array of tab items to display.
valuestringControlled active tab value.
onValueChange(value: string) => voidCallback when the active tab changes.
type"underline" | "pill" | "segmented""underline"Visual style of the tabs.
size"sm" | "md" | "lg""md"Size of the tab items.