Components
Tabs

Tabs

The Tabs component is a powerful and flexible navigation tool for your applications. It offers various interaction modes, accessibility features, and the ability to display different contents based on the selected tab.

API Reference

Root

PropTypeDefault
activationMode
'manual' | 'automatic'
"automatic"
asChild
boolean
defaultValue
string
dir
'ltr' | 'rtl'
"ltr"
getRootNode
() => ShadowRoot | Node | Document
id
string
ids
Partial<{ root: string trigger: string tablist: string content: string indicator: string }>
loop
boolean
true
onFocusChange
(details: FocusChangeDetails) => void
onValueChange
(details: ValueChangeDetails) => void
orientation
'horizontal' | 'vertical'
"horizontal"
translations
IntlTranslations
value
string

TabList

PropTypeDefault
asChild
boolean

TabContent

PropTypeDefault
value
string
asChild
boolean
lazyMount
boolean
false
onExitComplete
() => void
present
boolean
unmountOnExit
boolean
false

TabTrigger

PropTypeDefault
value
string
asChild
boolean
disabled
boolean

TabIndicator

PropTypeDefault
asChild
boolean