SwipeUI

TabBarNotch

A tab bar with a notch cut into its top edge, docked or floating: it cradles a circle, square or diamond centre action, or carries the selected tab up into a bubble that follows the selection.

npx @swipeui/cli add tab-bar-notch
Variant
Preset
Material
Scheme
Feel
Interactive web demo. Native materials, gestures and system presentation differ on device.

When to use it

  • A bar whose one main action sits in a notch cut to its shape, like a FAB resting in a bottom app bar.
  • Playful designs where the selected tab rises into a bubble and the notch follows it (active-notch).
  • Docked to the bottom edge for a classic app bar, or floating as a pill for a lighter screen.
  • Apps where the main action should visibly belong to navigation.

When not to use it

  • A raised button without a cut-out. Use Centre action tab bar.
  • Several actions. Use Action morph tab bar.
  • Glass designs. Use Glass action tab bar.
  • Very narrow screens where the cradle would crowd the tabs.

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 { TabBarNotch } from '@/components/swipeui/tab-bar/tab-bar-notch';

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

API reference

PropTypeDefaultDescription
motion?MotionOverridethe app feel

Local motion feel or spring override.

variant?"active-notch" | "centre-action"'centre-action'

centre-action cradles an action button in a fixed notch; active-notch carries the selected tab's icon up into a bubble whose notch follows the selection.

layout?"docked" | "floating"'docked'

docked runs the bar edge to edge down to the bottom of the screen; floating makes it a pill above the safe area.

notchShape?NotchShape'circle'

The centre action's shape, and the notch cut to match it. active-notch is always round.

actionIcon?ReactNode—

The icon inside the centre action. Draw it in the primary-foreground colour.

actionLabel?string—

The spoken name of the centre action. It wins over messages.action.

onActionPress?(() => void)—

Called when the centre action is pressed. It never selects a route. Without it or actions the action is disabled.

actions?readonly TabBarQuickAction[]—

Quick actions the centre 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 action'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.

actionSize?number56 for a circle, 52 for a square, 60 for a diamond, 48 for the active bubble

The raised element's extent in points: the action's diameter, side or diagonal, or the bubble's diameter.

notchMargin?number6

The space between the raised element and its notch.

scrub?booleantrue

With active-notch, lets a finger drag the bubble across the bar to the next tab; the tab under it is selected on release. Taps always work.

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?TabBarNotchMessages—

Replaces the built-in wording: the spoken badge count and the action's name.

className?string—

Classes merged over the bar's outer wrapper.

style?StyleProp<ViewStyle>—

Style escape hatch for the bar's outer wrapper.

testID?string—

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

Composition and behavior

  • A bar with a notch cut into its top edge, drawn from the bar's measured size so it always fills the bar and its safe area.
  • layout docks it edge to edge down to the bottom of the screen, or floats it as a pill above the safe area.
  • variant cradles a centre action in a fixed notch (centre-action), or carries the selected tab's icon up into a bubble whose notch follows the selection (active-notch).
  • notchShape makes the centre action a circle, a square (your preset's control radius) or a diamond, with the notch cut to match. The active bubble is always round.
  • actionIcon, actionLabel and onActionPress define the centre action; actionSize and notchMargin size it and its notch.
  • actions gives the centre action quick actions, and presentation opens them as the glass menu leaving its top edge (menu) or in a bottom sheet (sheet). Each centre-action variant has a -sheet twin.
  • In active-notch mode the bubble glides between tabs and can be dragged; scrub set to false keeps taps only.
  • notchTabBarHeight(insets.bottom, layout) gives the space to pad scroll content by.
  • messages.action names the action when actionLabel is not set; messages.badgeCount replaces the spoken badge wording.
  • See navigation patterns.

Behavior and gestures

  • In centre-action mode, the centre button runs onActionPress with a press scale and haptic tap; without onActionPress it is disabled.
  • notchShape picks a round, square or diamond action, and the notch is cut to match with smooth shoulders.
  • In active-notch mode, the selected tab's icon rises into a round bubble in the notch; switching glides the bubble and the notch together while the icons sink and return.
  • In active-notch mode, drag sideways and the bubble follows your finger, ticking for each tab it crosses; let go and the tab under it is selected.
  • layout="docked" runs the bar edge to edge down to the bottom of the screen; layout="floating" makes it a pill above the safe area.
  • Tabs switch with a selection tick; long-press sends tabLongPress.
  • With actions, the centre action opens them: the glass menu leaving its top edge (presentation="menu") or a bottom sheet (presentation="sheet").

Accessibility

  • The centre action is a separate button with its own label (actionLabel).
  • active-notch has no extra button, so the tab list stays simple for screen readers.
  • Tabs report selected state; badges are read with labels.
  • In right-to-left layouts the cradle follows reading order.

Motion

  • Uses the select and press motion roles, so it follows your app's feel. Pass motion to tune this one instance.
  • The bubble and its notch glide with the select spring, and follow a dragging finger; the icons under them sink and return.
  • Reduce Motion makes them jump.

Performance

  • The notch is an SVG shape measured to the bar width, recalculated only when the size or selection changes.

Notes for AI

  • Use variant="centre-action" with actionIcon, actionLabel and onActionPress, or variant="active-notch" with no action.
  • Pick layout and notchShape to match the design; active-notch is always round.
  • Wrap the app in GestureHandlerRootView: the active bubble can be dragged. Set scrub={false} for taps only.

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