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
@marktiderman/genesis-ui/layoutimport { TabBar } from "@marktiderman/genesis-ui/layout";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.
| Prop | Type | Default | Description |
|---|---|---|---|
| items* | readonly TabBarItem[] | — | |
| onChange* | (key: string) => void | — | |
| value* | string | — | The current tab's key. |
| className | string | — | |
| label | string | — | The nav's accessible name. Default the shell's "Primary navigation". |
| max | number | 5 | Slots before "More" takes the last. Default 5. |
| testID | string | tab-bar |