Tabs
A set of layered sections of content—known as tab panels—that are displayed one at a time.
Examples
Make changes to your account here. Click save when you're done.
import { Tabs } from 'kalki-design'
<Tabs>Click me</Tabs>Installation
npx kalki-design add tabsUsage
import { Tabs } from 'kalki-design'
export default function Example() {
return <Tabs />
}API Reference
| Name | Type | Default | Description |
|---|---|---|---|
Nametabs | TypeTabItem[] | Default— | DescriptionArray of tabs with id, label, disabled status, and optional badge. |
NameactiveTab | Typestring | Default— | DescriptionId of the controlled active tab. |
NameonChange | Type(id: string) => void | Default— | DescriptionCallback fired when a tab is clicked. |
Namevariant | Type'underline' | 'pills' | 'bordered' | Default'underline' | DescriptionVisual style of the tabs. |
Namesize | Type'sm' | 'md' | 'lg' | Default'md' | DescriptionSize of the tabs. |
NamefullWidth | Typeboolean | Defaultfalse | DescriptionStretches tabs to fill container width. |