Tabs

Display tab content.

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

General

Toggle display of different templates.

http
proxies
HTTP is stateless, but not sessionless.
Code Editor

Disabled

http
jumped
HTTP is stateless, but not sessionless.
Code Editor

Hide Divider

HTML
CSS

HTML is the language that we use to structure the different parts of our content and define what their meaning or purpose is.

Code Editor

Hide Border

HTML
CSS

HTML is the language that we use to structure the different parts of our content and define what their meaning or purpose is.

Code Editor

With Icon

Show icon component on label button.

Twitch TV
Twitter

Hello, this is our live broadcast on Twitch.

Code Editor

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.)

Home
About
About Us
Features
Pricing
Docs
Profile
Settings
Dashboard
Policies

Hello!

Code Editor

Imperatively

Control components with imperatively style.

stateless
extensible
HTTP is stateless, but not sessionless.
Code Editor

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

Geist is an open source project from the community.

And is powered by Netlify.