Tabs

The <Tabs /> component renders accessibility-focused tab controls.

Built on top of the Reach UI Tabs.

import {
Box,
Flex,
Tabs,
TabList,
Tab,
TabPanels,
TabPanel,
useTabContext,
} from 'minerva-ui';

Tabs with underline

My Account!

Favorites!

Orders!

Billing!

Vertical Tabs

My Account!

Favorites!

Orders!

Billing!

Tabs with custom underline

My Account!

Favorites!

Orders!

Billing!

Tabs with underline and icons

My Account!

Favorites!

Orders!

Billing!

Tabs in pills

My Account!

Favorites!

Orders!

Billing!

Tabs in pills on gray

My Account!

Favorites!

Orders!

Billing!

Tabs in pills with brand color

My Account!

Favorites!

Orders!

Billing!

Props

Props are all extended from Reach UI's <Tabs /> component

<Tabs />

NameTypeIs RequiredDefaultDescription
defaultIndexnumberoptionalnoneInitial active tab index
indexnumberoptionalnoneActive tab index
onChangefunctionoptionalnoneCallback that's triggered whenever a new tab is selected
keyboardActivationauto or manualoptionalautoWhen auto, tabs are activated when focused, when manual you must press Spacebar or Enter to activate tabs
orientationhorizontal or verticaloptionalhorizontalChange direction of tabs

<TabsList />

NameTypeIs RequiredDefaultDescription
childrennodeoptionalnone

<Tab />

NameTypeIs RequiredDefaultDescription
childrennodeoptionalnone
disabledbooleanoptionalfalseDisable clicking or focusing tab

<TabPanels />

NameTypeIs RequiredDefaultDescription
childrennodeoptionalnone

<TabPanel />

NameTypeIs RequiredDefaultDescription
childrennodeoptionalnone