Navigation Menu
Mobile Tab Bar
NewA bottom bar of icons for phones, with a pill that springs to the active tab, opens to show its label and badges that pop.
npx motionsnack add mobile-tab-barCustomize
<MobileTabBar />Props
8 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { value?: string; label: string; icon: MobileTabBarIcon; href?: string; badge?: string }[] | 5 demo tabs | Tabs, start to end (3–5). Icons: home, search, folder, inbox, bell, calendar, chart-column, heart, plus, settings, user. An empty or '#' href renders a button. |
| value | string | - | Controlled current tab (its value). |
| defaultValue | string | first tab | Current tab on first render when uncontrolled. |
| onChange | (value: string) => void | - | Called with the value of the tab the user picked. |
| fixed | boolean | false | Pin the bar to the bottom of the viewport (z-30). |
| linkComponent | ElementType | 'a' | Renders every tab link, e.g. the app's router link. |
| className | string | '' | Extra classes on the bar. |
| variant | 'floating' | 'docked' | 'floating' | A capsule over the page with the current tab's label, or a 64px bar on the bottom edge with every label. |
About Mobile Tab Bar
Mobile Tab Bar is the bottom navigation of a phone app. The active tab sits in a pill that springs from tab to tab and opens up to show the tab's name next to its icon, while the others stay as plain icons; it can also show every label under its icon. Icons give a little squeeze when tapped, and counters pop in with a bounce whenever their number changes. It comes as a floating capsule that hovers over the page with a frosted background, or docked to the bottom edge with room for the phone's home indicator. The pill can be solid black or white, or a soft grey.
What's included
- Pill that springs between tabs
- Label that opens inside the active pill, or labels under every icon
- Counters that pop when they change
- Floating capsule or docked bar with safe-area padding
- Solid or soft pill, squeeze on tap
- Controlled and uncontrolled value
- Light and dark look, respects reduced motion
- Type
- Animated React navigation menu component
- Library
- Components · Navigation Menu
- Stack
- Next.js, React, Tailwind CSS, Framer Motion
- Added
- 2026-11-24
- Install
npx motionsnack add mobile-tab-bar