Tabs
Navigation

Tabs.

Animated active indicator with keyboard arrow navigation.

Real interactive component
Live demo

Your workspace overview. Watch the selection glide!

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

7 props
ParameterTypeRequiredDefaultPossible valuesDescription
childrenReactNodeYes——TabsList/TabsTrigger/TabsContent composition.
valuestringNo——Controlled selected tab ID.
defaultValuestringNo""—Initial uncontrolled tab ID.
onValueChange(value: string) => voidNo——Invoked when selected tab changes.
classNamestringNo——Additional tabs container class.
TabsTrigger.valuestringYes——Tab ID; must correspond to TabsContent.value.
TabsContent.valuestringYes——Associated tab panel ID.