Mobile › Navigation
Floating TabBar
TabBar with floating on: the bar lifts off the bottom edge and content scrolls under it, with an optional round action beside it.
Installation
npx expo install plankui-mobile react-native-safe-area-context expo-hapticsUsage
import { Screen, TabBar } from "plankui-mobile";
<Screen
footer={
<TabBar
floating
value={tab}
onChange={setTab}
items={tabs}
action={{ label: "Search", icon: ({ color, size }) => <SearchIcon color={color} size={size} />, onPress: openSearch }}
/>
}
>
…
</Screen>iOS and Android
iOS: An iOS 26 style capsule: translucent glass with a blur on the web, icon over label, a soft pill behind the chosen tab, and a separate round search button.
Android: A Material 3 Expressive floating toolbar: a pill where the chosen tab shows its icon and label side by side, others icon only, with a FAB in the accent colour.
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| floating | boolean | false | Floats the bar over the content. Screen pads the content so the last item clears it. |
| action | { label, icon, onPress } | – | A round button beside the bar: search on iOS, the main action (FAB) on Android. |
| items · value · onChange | As on TabBar. |