Tabs

Display tab content.

The Tabs contain an additional Hooks, see subsection useTabs for details.

General

Toggle display of different templates.

Preview
See code
Declarative
Component-Based
React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.

Disabled

You can change disabled Tabs with the property disabled.

Preview
See code
Declarative
Component-Based
React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.

Hide Divider

Tabs component with a hide divider functionality.

Preview
See code
Declarative
Component-Based

React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.

Hide Border

Tabs component with a hide border functionality.

Preview
See code
Declarative
Component-Based

React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.

With Icon

Show icon component on label button.

Preview
See code
Instagram
Facebook

Hello, this is my profile.

Scroll Behavior

If all tabs cannot fit in the width then then hidden tabs can be accessed through user agent scrolling mechanisms (e.g. left/right swipe, shift-mousewheel, etc.)

Preview
See code
Home
About
About Us
Features
Pricing
Docs
Profile
Settings
Dashboard
Policies

Hello!

Imperatively

Control components with imperatively style.

Preview
See code
declarative
component-based
React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.

APIs

Tabs.Props

AttributeDescriptionTypeAccepted valuesDefault
initialValueinitial valuestring--
valuecurrent selected valuestring--
hideDividerhide default dividerboolean-false
hideBorderhide border on activeboolean-false
leftSpacespace area on the left sideCSSProperties-12px
onChangechange event(val: string) => void--
alignhorizontal alignment of each child itemjustifyContent-left
activeClassNameclassName of active child itemstring--
activeStylesstyle of active child itemobject--
hoverHeightRatioheight percentage of highlight blocknumber-0.7
hoverWidthRatiowidth percentage of highlight blocknumber-1.15
...native propsHTMLAttributes'alt', 'id', 'className', ...-

Tabs.Item.Props[alias: Tabs.Tab]

AttributeDescriptionTypeAccepted valuesDefault
label(required)display tab's labelstring--
value(required)unique ident valuestring--
disableddisable current tabboolean-false
Edit this page on GitHub

Previous

Table

Next

Tag

MADE & DESIGNED WITHBY BRUNO ANDRADE
docs background gradient blue
docs background gradient violet