TabBarGlassAction
A Liquid Glass capsule of tabs with a draggable glass lens, and a round glass action as tall as the capsule.
npx @swipeui/cli add tab-bar-glass-actionWhen to use it
- iOS 26-style navigation: a glass pill of tabs with a separate round button beside it for Create or Search.
- Apps where the main action sits next to navigation but shouldn't count as a tab.
- Content feeds where the pill should shrink on scroll and give back space.
- Search-first apps where the trailing button opens search.
When not to use it
- A centred action between tabs. Centre action tab bar fits better.
- Several quick actions. Action morph tab bar opens a menu.
- No action at all. Glass tab bar or Basic tab bar is simpler.
- Older iOS-only designs without glass.
Installation
Installs with a Pro licence
Everything on this page is public except the source. Founder pre-sale opens around 5 January 2027.
Usage
import { TabBarGlassAction } from '@/components/swipeui/tab-bar/tab-bar-glass-action';
<Tabs
tabBar={(props) => (
<TabBarGlassAction
{...props}
actionIcon={<PlusIcon />}
actionLabel="Create"
onActionPress={create}
/>
)}
/>;API reference
| Prop | Type | Default | Description |
|---|---|---|---|
motion? | | | Local motion feel or spring override. |
material? | | | Preferred material; unsupported choices fall back. |
glassStyle? | | | Native glass style. |
blurTarget? | | — | Android requires a BlurTargetView ref for real blur. |
blurIntensity? | | | Blur strength. |
actionIcon | | — | The icon inside the trailing action. |
actionLabel | | — | The spoken name of the trailing action. |
onActionPress? | | — | Called when the trailing action is pressed. It never selects a route. |
actions? | | — | Quick actions the trailing action opens, as a glass menu or a sheet ( |
presentation? | | | How |
onActionError? | | — | Called with the error when a quick action rejects; its row offers a retry. |
actionMessages? | | — | Replaces the quick actions' built-in wording. |
scrub? | | | Lets a finger drag the lens across the capsule to the next tab; the tab under it is selected on release. Taps always work. |
lift? | | | Swells the lens while a finger drags it, like the system tab bar's lens. |
stretch? | | | Stretches the lens while it travels between tabs. |
minimizeOnScroll? | | | Folds the labels away and narrows the capsule as the content scrolls; the action shrinks with it. Every tab stays reachable. |
labelVisibility? | | | Which tabs show a label. Hidden labels are still read by screen readers. |
haptics? | | | Plays a selection tick when the tab changes, one for each tab a drag crosses, and a light tap on the action. |
hideOnKeyboard? | | | Hides the bar while the keyboard is open. A screen's |
messages? | | — | Replaces the built-in spoken wording, such as "Inbox, 3 new". |
className? | | — | Classes merged over the floating wrapper. |
style? | | — | Style escape hatch for the floating wrapper. |
testID? | | — | The tab list gets |
Composition and behavior
- A Liquid Glass capsule of tabs plus a round glass button with actionIcon and actionLabel. The button is a circle exactly as tall as the capsule.
- A clear glass lens marks the selected tab. scrub lets a finger drag it to another tab; lift swells it while dragged and stretch stretches it as it travels. The app needs GestureHandlerRootView at its root.
- onActionPress runs the action; it never selects a route.
- actions gives the circle quick actions, and presentation opens them as the glass menu leaving its top edge (
menu) or in a bottom sheet (sheet). Each variant has a-sheettwin. - minimizeOnScroll folds the labels and narrows the capsule while scrolling (on by default); the button shrinks with it.
- Labels take the active and inactive tab colours; labelVisibility shows every label, only the selected one, or none.
- glassActionTabBarHeight(insets.bottom) gives the space to pad scroll content by.
- See Liquid Glass and fallbacks and navigation patterns.
Behavior and gestures
- Tapping a tab glides the clear glass lens to it with a selection tick once it lands; tapping the round button runs your action without changing tabs.
- Drag sideways across the bar and the lens follows your finger, ticking for each tab it crosses; let go and the tab under it is selected, once. A drag only starts after about 10 points of sideways movement, so a tap never becomes one. The lens swells and stretches as it travels.
- Scrolling down folds the labels away and narrows the capsule; the action shrinks with it so its diameter always matches the capsule's height. Scrolling up restores both.
- In right-to-left layouts the action moves to the other side.
- In very narrow containers the action stacks instead of shrinking its touch target.
- With actions, the circle opens them: the glass menu leaving its top edge (presentation="menu") or a bottom sheet (presentation="sheet").
Accessibility
- The action is a separate button with its own label (actionLabel), never a tab.
- The action button is at least 52 points; tabs stay at least 44 points when minimised.
- Reduce Transparency switches glass to an opaque surface.
- Tabs report selected state; badges are read with labels.
Motion
- Uses the
select,morphandpressmotion roles, so it follows your app's feel. Passmotionto tune this one instance. - The lens glides with the select spring, swells while dragged and stretches with its distance from the selected tab.
- Minimising follows the scroll progress on the UI thread.
- Reduce Motion keeps the lens and drops the glide, swell and stretch.
Performance
- Scroll progress is a shared Reanimated value, so scrolling never re-renders React.
- Glass uses the system material where available.
Notes for AI
- Use TabBarScrollProvider and useTabBarScrollHandler for minimisation, or set minimizeOnScroll={false}.
- onActionPress must not navigate between tabs.
- Wrap the app in GestureHandlerRootView: the selection can be dragged. Set scrub={false} for taps only.
- Use lift={false} or stretch={false} for a calmer lens.
Compatibility
| Runs on | Supported |
|---|---|
| Expo SDK 57 | Yes |
| Expo SDK 58 | Yes |
| React Native CLI (with Expo modules) | Yes |
| Expo Go | Yes |
| Expo Router | Yes |
| React Navigation 7 | Yes |
| iOS | Yes |
| Android | Yes |
This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.