Dinachi

Tabs

A set of layered sections of content, known as tab panels, displayed one at a time.

View Source

#Installation

npx @dinachi/cli@latest add tabs

#Usage

tsx
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'

#Examples

#API Reference

PropTypeDefaultDescription
defaultValuestringThe value of the tab to select by default
valuestringThe controlled value of the currently active tab
onValueChange(value: string) => voidCallback fired when the active tab changes