SwipeUI

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-action
Variant
Preset
Material
Scheme
Feel
Interactive web demo. Native materials, gestures and system presentation differ on device.

When 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

app/(tabs)/_layout.tsx
import { TabBarGlassAction } from '@/components/swipeui/tab-bar/tab-bar-glass-action';

<Tabs
  tabBar={(props) => (
    <TabBarGlassAction
      {...props}
      actionIcon={<PlusIcon />}
      actionLabel="Create"
      onActionPress={create}
    />
  )}
/>;

API reference

PropTypeDefaultDescription
motion?MotionOverridethe app feel

Local motion feel or spring override.

material?"auto" | GlassMaterial'auto'

Preferred material; unsupported choices fall back.

glassStyle?"clear" | "regular"'regular'

Native glass style.

blurTarget?React.RefObject<ReactNativeElement | null>—

Android requires a BlurTargetView ref for real blur.

blurIntensity?number60

Blur strength.

actionIconReactNode—

The icon inside the trailing action.

actionLabelstring—

The spoken name of the trailing action.

onActionPress?(() => void)—

Called when the trailing action is pressed. It never selects a route.

actions?readonly TabBarQuickAction[]—

Quick actions the trailing action opens, as a glass menu or a sheet (presentation).

presentation?"menu" | "sheet"'menu'

How actions open: menu blooms the glass menu out of the circle's top edge; sheet shows them in a bottom sheet.

onActionError?((error: unknown) => void)—

Called with the error when a quick action rejects; its row offers a retry.

actionMessages?ActionMorphMessages—

Replaces the quick actions' built-in wording.

scrub?booleantrue

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?booleantrue

Swells the lens while a finger drags it, like the system tab bar's lens.

stretch?booleantrue

Stretches the lens while it travels between tabs.

minimizeOnScroll?booleantrue

Folds the labels away and narrows the capsule as the content scrolls; the action shrinks with it. Every tab stays reachable.

labelVisibility?"always" | "never" | "selected"'always'

Which tabs show a label. Hidden labels are still read by screen readers.

haptics?booleantrue

Plays a selection tick when the tab changes, one for each tab a drag crosses, and a light tap on the action.

hideOnKeyboard?booleantrue

Hides the bar while the keyboard is open. A screen's tabBarHideOnKeyboard wins.

messages?TabBarMessages—

Replaces the built-in spoken wording, such as "Inbox, 3 new".

className?string—

Classes merged over the floating wrapper.

style?StyleProp<ViewStyle>—

Style escape hatch for the floating wrapper.

testID?string—

The tab list gets testID, the lens ${testID}-indicator, the drag ${testID}-scrub, the action ${testID}-action, and each tab ${testID}-${routeName} unless its screen sets tabBarButtonTestID.

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 -sheet twin.
  • 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, morph and press motion roles, so it follows your app's feel. Pass motion to 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 onSupported
Expo SDK 57Yes
Expo SDK 58Yes
React Native CLI (with Expo modules)Yes
Expo GoYes
Expo RouterYes
React Navigation 7Yes
iOSYes
AndroidYes

This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.

Related items