Documentation

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 tabs

Usage

import { Tabs } from 'kalki-design'

export default function Example() {
  return <Tabs />
}

API Reference

NameTypeDefaultDescription
NametabsTypeTabItem[]DefaultDescriptionArray of tabs with id, label, disabled status, and optional badge.
NameactiveTabTypestringDefaultDescriptionId of the controlled active tab.
NameonChangeType(id: string) => voidDefaultDescriptionCallback fired when a tab is clicked.
NamevariantType'underline' | 'pills' | 'bordered'Default'underline'DescriptionVisual style of the tabs.
NamesizeType'sm' | 'md' | 'lg'Default'md'DescriptionSize of the tabs.
NamefullWidthTypebooleanDefaultfalseDescriptionStretches tabs to fill container width.