Ask Rift AI
Theme: Smoke
Layout: Contained
Background: Field
Search or ask anythingAsk Rift AI
Theme: Smoke
Layout: Contained
Background: Field
Colour mode: System

Bottom nav

The tab bar of a mobile app

Three to five top-level destinations along the bottom of the screen, each an icon over a label, with the selected icon drawn filled. Pressing a destination reports its key through onValueChange, and the host marks the current page with activeKey; a destination with an href renders as a real link. Inside these demos the bar sits in its stage; in an app, the fixed prop pins it to the bottom of the viewport above the home-indicator area.

Platforms

The platform prop draws the same markup three ways. Default is the Rift bar, built entirely from the system’s tokens. The ios and android variants are close matches for the iOS 26 Liquid Glass tab bar and the Material 3 Expressive navigation bar, for mocks and prototypes that should read as the real system chrome. A shipped native app should use the native component instead. Every bar here is live: press a destination to move the selection.

Default
iOS
Android

iOS search and minimising

On iOS a search destination gets its own glass circle beside the capsule; on the other platforms it joins the bar as the last tab. The minimized prop folds the capsule down to the selected destination alone, which is what the system bar does while a page scrolls down. The component leaves the scroll logic to the host, so the second demo sets the prop from the stage’s scroll direction. The glass on the web is frosted rather than refracted: Apple’s lensing needs shader access to the content behind it, which no browser gives a stylesheet.

Search as its own circle
Scroll down to minimise, up to restore

Badges

A badge is a count on the icon’s top corner, or a plain dot when set to true. Screen readers hear the count as part of the destination’s name. The smallest set a tab bar should carry is three destinations, shown here with a search tab joining the bar.

Count and dot badges
Three destinations with search

Props

Read from the same JSDoc that ships in the package's types. A required prop is marked with an asterisk.

BottomNav props
PropTypeDefaultDescription
items*
BottomNavItem[]
Destinations, three to five of them
activeKey
string
Key of the destination for the current page
onValueChange
((key: string) => void)
Called with a destination's key when it is pressed
platform
"default" | "ios" | "android"
'default'
Which platform's tab bar to draw. `default` is the Rift bar; `ios` is the iOS 26 Liquid Glass capsule floating over content with a sliding lens behind the selection; `android` is the Material 3 Expressive navigation bar with a pill indicator behind the selected icon.
search
BottomNavSearch
A destination set apart from the rest, search unless its `icon` says otherwise. On iOS it is its own glass circle beside the bar; elsewhere it joins the bar as the last destination.
minimized
boolean
false
iOS only: shrinks the bar to the selected destination alone, the way the system bar minimises while the page scrolls down. Ignored on other platforms.
fixed
boolean
false
Pins the bar to the bottom of the viewport, above the home-indicator safe area
aria-label
string
'Tabs'
Accessible name of the navigation landmark. Defaults to "Tabs", distinct from a site header's "Primary", so a screen carrying both announces two different navs
badgeLabel
((badge: string | number | true) => string)
(badge: number | string | true) => …
Visually hidden text read after a destination's label when it carries a badge, given the item's `badge`. Defaults to ", new" for a dot (`true`) and ", 3 new" for a count; the leading comma and space are part of the text.
className
string
''
Additional CSS classes
linkComponent
LinkComponent
The component its links render with, such as Next.js's `Link`, so they navigate through the app's router. Wins over a LinkProvider's; a plain `<a>` when neither is set.

Tested keys

An automated test presses every row below, in a left-to-right and a right-to-left layout.

The destinations follows the WAI-ARIA button pattern.

Keys the destinations is tested against
KeyWhat it does
Enter
Activates the button.
Space
Activates the button.
tsx
// From the npm package
import { BottomNav } from 'rift-ds/components/BottomNav/BottomNav';

// Or as source you own, via the shadcn CLI
npx shadcn@latest add https://rift-ds.com/r/bottom-nav.json

1.3 kB gzipped, with everything it imports. Peer dependencies are not counted.

For agents: the props, their allowed values and defaults, and the tested keys, as markdown or as a JSON schema.