Genesis
@beta

TabBar

A bottom tab bar for a phone-width web screen, the twin of genesis-ui-native's `NativeTabBar`: any number of items, and past `max` (5) the last slot is "More", which opens a bottom sheet with the rest. AppShell's own phone bottom nav (links, from its nav items) splits with the same `splitTabBarItems` (genesis-core/navigation); use `TabBar` for a bar of your own (a screen with tabs that aren't routes). It is not fixed: place it.

packages/ui/src/components/layout/tab-bar.tsx

Import
Subpath export: @marktiderman/genesis-ui/layout
import { TabBar } from "@marktiderman/genesis-ui/layout";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

TabBar

A bottom tab bar for a phone-width web screen, the twin of genesis-ui-native's `NativeTabBar`: any number of items, and past `max` (5) the last slot is "More", which opens a bottom sheet with the rest. AppShell's own phone bottom nav (links, from its nav items) splits with the same `splitTabBarItems` (genesis-core/navigation); use `TabBar` for a bar of your own (a screen with tabs that aren't routes). It is not fixed: place it.

PropTypeDefaultDescription
items*readonly TabBarItem[]—
onChange*(key: string) => void—
value*string—The current tab's key.
classNamestring—
labelstring—The nav's accessible name. Default the shell's "Primary navigation".
maxnumber5Slots before "More" takes the last. Default 5.
testIDstringtab-bar
Storybook
Storybook hosts the canonical visual reference with controls for every variant.