Tabs
Tabs reads label/disabled/badge off its Tab children and renders each one’s content into the matching panel — a Tab must be a direct child of Tabs and renders nothing on its own. Full keyboard support (arrow keys, Home/End, wrapping and skipping disabled tabs) and an animated sliding indicator for the segmented variant.
Usage
import { Tabs, Tab } from '@mav-labs-inc/mavkit-react'
<Tabs variant="underline" ariaLabel="Project sections">
<Tab label="Overview">Overview content…</Tab>
<Tab label="Activity" badge={5}>Activity content…</Tab>
<Tab label="Billing" disabled>Unavailable</Tab>
</Tabs>Examples
Segmented and underline
Overview content…
Activity content…
Unavailable
Overview content…
Activity content…
Unavailable
Vertical
Profile content…
Security content…
Notifications content…
Props
Tabs
Tab
Must be a direct child of Tabs. Renders null — Tabs reads its props directly.
Last updated on