Tabs

A component for toggling between related panels on the same page.

API reference

Base UI

This component is using Base UI under the hood. While most of the original props are available, we have made some changes to the API to fit our needs.

Discover more

Tabs.Root

Groups the tabs and the corresponding panels. Renders a <div> element.

PropTypeDefaultResponsive
defaultValue
any
0No
value
any
-No
onValueChange
((value) => void)
-No
children
ReactNode
-No
className
string
-No
style
CSSProperties
-No

Tabs.List

Groups the individual tab buttons. Renders a <div> element.

PropTypeDefaultResponsive
activateOnFocus
boolean
falseNo
loop
boolean
falseNo
children
ReactNode
-No
className
string
-No
style
CSSProperties
-No

Tabs.Tab

An individual interactive tab button that toggles the corresponding panel. Renders a <button> element.

PropTypeDefaultResponsive
value
string
-No
children
ReactNode
-No
className
string
-No
style
CSSProperties
-No

Tabs.Panel

A panel displayed when the corresponding tab is active. Renders a <div> element.

PropTypeDefaultResponsive
value
string
-No
keepMounted
boolean
falseNo
children
ReactNode
-No
className
string
-No
style
CSSProperties
-No