This page as markdown: /bottom-nav.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

BottomNav

Status: stable

Mobile bottom tab bar (fixed, hidden at lg), with home-indicator safe-area padding and evenly distributed BottomNavItem tabs. Items are router-agnostic via render.

Keywords: bottom nav, mobile nav, tabs, app navigation

Usage

Use BottomNav for a small set of top-level mobile destinations that should remain reachable with one thumb. Mount it through <AppShell bottomNav={…}> so the content area reserves matching bottom space; it hides at lg, where the Sidebar takes over.

Best practices

Anatomy

Part Required Description
BottomNav yes The fixed or anchored navigation container.
BottomNavItem yes One destination with label, icon, and active state.

Subcomponents

Name Type Description
BottomNavItem { label: string; icon?: ReactNode; active?: boolean; badge?: ReactNode; showLabel?: boolean; render?: useRender.RenderProp } + button props A single tab, placed as a child of BottomNav. label is the accessible name (aria-label) and optional visible label; icon is the glyph node (consumer swaps fill weight for the active state); active marks the current route (active ink + aria-current); badge overlays a corner dot/count on the icon; showLabel shows the label text beneath the icon — defaults to false (icon-only); turn it on when the icons alone are not self-evident; render renders as another element, e.g. render={}.

Tokens used

background, border, muted-foreground, foreground, ring

Motion

Accessibility

Related

Examples

Tab bar

import { BottomNav, BottomNavItem, Icon, NotificationBadge } from "@sableui/react"
// <Link> = your router's link (react-router, next/link, @tanstack/router, …)

<BottomNav><BottomNavItem icon={<Icon name="home" />} label="Home" active render={<Link to="/" />} /><BottomNavItem icon={<Icon name="bell" />} label="Notifications" badge={<NotificationBadge dot />} render={<Link to="/notifications" />} /></BottomNav>

When NOT to use it

import { AppShell, BottomNav, BottomNavItem, Icon, Region } from "@sableui/react"

// BottomNav is for 3–5 PEER destinations on a small viewport — the mobile
// counterpart to SideNav, not an action bar.

// ✗ Actions. A bottom bar of verbs (Save / Share / Delete) is a toolbar; it
//   competes with the OS gesture area and has no "current" state to show.
// ✗ More than five items. Past that, labels truncate and targets shrink below
//   the 44px floor — use a "More" destination that opens a Sheet.
// ✗ Nested navigation. BottomNav switches top-level sections only; drilling in
//   happens inside the section, with Breadcrumbs or a back affordance.

<AppShell bottomNav={<BottomNav>
  <BottomNavItem label="Home" icon={<Icon name="home" />} active />
  <BottomNavItem label="Search" icon={<Icon name="search" />} />
  <BottomNavItem label="Account" icon={<Icon name="user" />} />
</BottomNav>}>
  <Region max="feed">Route content</Region>
</AppShell>