SwipeUI

Bottom accessory

A capsule above the tab bar, such as a mini player: its own glass over a custom bar, or the content alone inside the native accessory slot, with scroll minimisation, swipe to dismiss and a spring in.

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

When to use it

  • A mini player, active timer or ongoing call bar that stays above the tab bar on every screen.
  • Native tabs on iOS 26 using NativeTabs.BottomAccessory.
  • Custom tab bars that need a persistent control strip which shrinks along with them.
  • Any small, always-available control row that shouldn't scroll away.

When not to use it

  • Temporary messages. Use Toast.
  • Primary navigation. Use a tab bar.
  • Large controls or forms. Use a sheet.
  • Screen-specific actions. Put them on that screen.

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 { BottomAccessory } from '@/components/swipeui/header/bottom-accessory';

<BottomAccessory>
  <Text>Quiet route</Text>
  <Button onPress={togglePlayback}>{playing ? 'Pause' : 'Play'}</Button>
</BottomAccessory>;

API reference

PropTypeDefaultDescription
material?"auto" | GlassMaterial'auto'

Preferred material; unsupported choices fall back.

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

Native glass style.

isInteractive?booleanfalse

Enables native touch feedback.

tinted?booleanfalse

Washes native glass with the glass-tint token. The token is mostly opaque, so a tinted surface reads as a flat panel; leave it off for the clear, refracting Liquid Glass look.

blurTarget?React.RefObject<ReactNativeElement | null>—

Android requires a BlurTargetView ref for real blur.

blurIntensity?number60

Blur strength.

className?string—

Token classes on the surface.

placement?"inline" | "regular"'regular'

Where the system placed the accessory. Map NativeTabs.BottomAccessory.usePlacement() here.

inlineContent?ReactNode—

Shorter content for the inline placement. Keep its state above the accessory: the system may draw both placements.

surface?"glass" | "none"'glass'

glass draws the accessory's own glass capsule, for a custom bar. none draws only the content, for NativeTabs.BottomAccessory, where the system already draws the capsule; two surfaces would show as a pill inside a pill.

shape?"capsule" | "preset"'capsule'

capsule rounds the ends fully, like the system's accessory; preset uses the preset's card corners. Round artwork at the leading end (rounded-full) keeps a capsule's curves concentric.

size?"regular" | "tall"'regular'

regular is about 60pt tall with its own glass. tall is 64pt, for 48pt artwork and bigger controls; float it above native tabs yourself, since the system's accessory slot has a fixed height of about 47pt and ignores this.

minimize?booleantrue

Tightens the accessory's padding as the tab bar minimises on scroll.

onDismiss?(() => void)—

Called after a swipe to the left carries the accessory away. Without it, the accessory can't be swiped. Hide or unmount the accessory here; on native tabs, set the host's bottomAccessoryHidden so the system animates its capsule away.

dismissible?booleantrue

Whether the swipe is allowed now, such as only while playback is paused.

appear?booleantrue

Springs the content in when the accessory appears.

motion?MotionOverridethe app feel

Local motion feel or spring override.

Composition and behavior

  • A glass capsule with a row of your children controls. shape set to preset uses your preset's card corners instead. Round artwork keeps the curves concentric.
  • placement is regular or inline; inlineContent is the compact version for inline placement.
  • Inside NativeTabs.BottomAccessory pass surface="none": iOS draws the capsule and fixes its height at about 47pt, so the content fits inside it.
  • size tall is a 64pt capsule for 48pt artwork. The system slot can't grow, so float the tall player above the native bar yourself (about 91pt from the bottom on iOS 26 with a home indicator) and leave out NATIVE_TABS_SCROLL_OPTIONS so the bar keeps its size under it.
  • Minimises together with the tab bar through the shared scroll provider.
  • Your app owns playback or timer state.
  • minimize set to false keeps the padding still while the tab bar minimises.

Behavior and gestures

  • Your controls inside stay tappable at all times, even while the bar minimises.
  • When the tab bar minimises on scroll, the accessory tightens its padding to match.
  • With native tabs, iOS can switch the accessory to an inline placement; show inlineContent there.
  • size="tall" makes the capsule 64pt tall for 48pt artwork; the system's native slot keeps its own fixed height of about 47pt.
  • It is a capsule by default, like the system's accessory; shape="preset" uses the preset's card corners.
  • With onDismiss, a swipe to the left carries the accessory away (past 30% of its width or a quick flick); a shorter swipe springs back. dismissible switches the swipe off, for example while playing.
  • With appear, the content springs in when the accessory appears.

Accessibility

  • Controls keep at least 44-point targets in both sizes.
  • Glass switches to an opaque surface with Reduce Transparency.
  • Keep each control labelled; the accessory adds no names of its own.

Motion

  • Uses the layout and press motion roles, so it follows your app's feel. Pass motion to tune this one instance.
  • Padding changes follow the tab bar's minimise progress with the layout role.
  • Reduce Motion makes the change instant.

Performance

  • Reads the shared minimise progress on the UI thread.
  • Keep playback state above the accessory so placement changes don't reset it.

Notes for AI

  • For native tabs, render it inside NativeTabs.BottomAccessory and pass NativeTabs.BottomAccessory.usePlacement() to placement.
  • For custom bars, reserve space above the bar and share TabBarScrollProvider.
  • Use round artwork (rounded-full) at the leading end so it sits concentric with the capsule.
  • Inside NativeTabs.BottomAccessory pass surface="none": the system draws the capsule, and a second glass surface shows as a pill inside a pill.
  • For a taller player than the system slot allows, skip NativeTabs.BottomAccessory and float <BottomAccessory size="tall"> absolutely above the native bar (about 91pt from the bottom on iOS 26 with a home indicator).
  • To hide the native accessory with the system animation, set NativeTabs unstable_nativeProps={{ ios: { bottomAccessoryHidden } }} in onDismiss, and clear it to bring it back.

Compatibility

Runs onSupported
Expo SDK 57Yes
Expo SDK 58Yes
React Native CLI (with Expo modules)Yes
Expo GoYes
iOSYes
AndroidYes

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

Related items