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-notchWhen 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
import { TabBarNotch } from '@/components/swipeui/tab-bar/tab-bar-notch';
<Tabs
tabBar={(props) => (
<TabBarNotch {...props} actionIcon={<PlusIcon />} actionLabel="Create" onActionPress={create} />
)}
/>;API reference
| Prop | Type | Default | Description |
|---|---|---|---|
motion? | | | Local motion feel or spring override. |
variant? | | |
|
layout? | | |
|
notchShape? | | | The centre action's shape, and the notch cut to match it. |
actionIcon? | | — | The icon inside the centre action. Draw it in the |
actionLabel? | | — | The spoken name of the centre action. It wins over |
onActionPress? | | — | Called when the centre action is pressed. It never selects a route. Without it or |
actions? | | — | Quick actions the centre 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. |
actionSize? | | | The raised element's extent in points: the action's diameter, side or diagonal, or the bubble's diameter. |
notchMargin? | | | The space between the raised element and its notch. |
scrub? | | | With |
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 wording: the spoken badge count and the action's name. |
className? | | — | Classes merged over the bar's outer wrapper. |
style? | | — | Style escape hatch for the bar's outer wrapper. |
testID? | | — | The tab list gets |
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-sheettwin. - 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
selectandpressmotion roles, so it follows your app's feel. Passmotionto 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 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.