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-accessoryWhen 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
import { BottomAccessory } from '@/components/swipeui/header/bottom-accessory';
<BottomAccessory>
<Text>Quiet route</Text>
<Button onPress={togglePlayback}>{playing ? 'Pause' : 'Play'}</Button>
</BottomAccessory>;API reference
| Prop | Type | Default | Description |
|---|---|---|---|
material? | | | Preferred material; unsupported choices fall back. |
glassStyle? | | | Native glass style. |
isInteractive? | | | Enables native touch feedback. |
tinted? | | | Washes native glass with the |
blurTarget? | | — | Android requires a BlurTargetView ref for real blur. |
blurIntensity? | | | Blur strength. |
className? | | — | Token classes on the surface. |
placement? | | | Where the system placed the accessory. Map |
inlineContent? | | — | Shorter content for the |
surface? | | |
|
shape? | | |
|
size? | | |
|
minimize? | | | Tightens the accessory's padding as the tab bar minimises on scroll. |
onDismiss? | | — | 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
|
dismissible? | | | Whether the swipe is allowed now, such as only while playback is paused. |
appear? | | | Springs the content in when the accessory appears. |
motion? | | | 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.BottomAccessorypasssurface="none": iOS draws the capsule and fixes its height at about 47pt, so the content fits inside it. - size
tallis 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 outNATIVE_TABS_SCROLL_OPTIONSso 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
layoutandpressmotion roles, so it follows your app's feel. Passmotionto 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 on | Supported |
|---|---|
| Expo SDK 57 | Yes |
| Expo SDK 58 | Yes |
| React Native CLI (with Expo modules) | Yes |
| Expo Go | Yes |
| iOS | Yes |
| Android | Yes |
This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.