1. components
  2. tabs
  3. react

Tabs

Use tabs to quickly switch between different views and pages.

Books tab content

Icons

Easily customize tabs content with icons and arrange them in any combination you prefer.

Books tab content
Books tab content

Stretch

Tabs can be stretched to fill the available space using the width prop.

Books tab content

Justify

Books tab content

Accessibility

This component adheres to the ARIA APG. Use the preview below to test tabbing and keyboard navigation.

Right-to-Left

This component fully supports RTL layouts for seamless navigation and accessibility.

Books tab content

API Reference

Tabs

Property Type Description
id
string
Provide a unique ID.
base
string
Sets base styles.
spaceY
string
Set vertical spacing between list and panels.
classes
string
Provide arbitrary CSS classes.
children
React.ReactNode
-

TabsList

Property Type Description
base
string
Sets the base styles.
justify
string
Sets the justification styles.
gap
string
Sets the gap spacing.
border
string
Sets the border styles.
classes
string
Provide arbitrary CSS classes.
children
React.ReactNode
-

TabsControl

Property Type Description
id
string
Provide a unique ID.
name *
string
Provide the tab control name.
group *
string
Provide the tab control radio group.
title
string
Provide a hoverable title attribute.
label
string
Sets the A11y label.
controls
string
Sets ARIA controls value to define which panel this tab controls.
base
string
Sets base styles.
width
string
Sets width styles.
active
string
Sets the active control styles.
inactive
string
Sets the inactive control styles.
flex
string
Sets flex styles.
background
string
Sets background styles.
border
string
Sets border styles.
text
string
Sets text size styles.
padding
string
Sets padding styles.
rounded
string
Sets rounded styles.
gap
string
Sets vertical gap styles.
cursor
string
Sets cursor styles.
classes
string
Provide arbitrary CSS classes.
onClick
object
Triggers on Tab Control click.
onKeydown
object
Triggers on Tab Control key down.
onKeyup
object
Triggers on Tab Control key up.
onChange
object
Triggers on Tab Control group change.
children
React.ReactNode
-

TabsControlItem

Property Type Description
base
string
Sets base styles.
flex
string
Sets flex styles.
gap
string
Sets gap styles.
background
string
Sets background styles.
padding
string
Sets padding styles.
rounded
string
Sets rounded styles.
classes
string
Provide arbitrary CSS classes.
children
React.ReactNode
-

TabsPanelItem

Property Type Description
id
string
Provide a unique ID.
value *
string
Provide the tab panel value.
group *
string
Provide the tab control radio group.
labelledBy
string
Sets the A11y labelledby.
classes
string
Provide arbitrary CSS classes.
children
React.ReactNode
-