suiss/ui · Component
Bottom Bar
A bar pinned to the bottom of a screen for primary actions, which rises above the keyboard.
Bottom Bar is an open-source component from suiss/ui for React Native, SwiftUI and Jetpack Compose. The @esuiss/ui CLI copies its source into your project, so you own the code.

BottomBar is an animated View that adds bottom padding equal to the safe-area inset, or to the keyboard height while the keyboard is open, and animates between them with the keyboard's own timing. BottomBarContent adds the standard padding and spacing for the buttons inside.
Use it for the main call to action of a screen, such as checkout or a form submit button.
Installation
The CLI also adds what it builds on: Screen. It also adds the animated view components/ui/animated-view.tsx.
- Install the following dependencies:
-
Add the pieces it builds on: Screen.
-
Copy the animated view into
components/ui/animated-view.tsx:
- Copy the primitives it uses into
components/primitives:
- Copy and paste the following code into
components/ui/bottom-bar.tsx:
- Update the import paths to match your project setup.
- Install the following dependencies:
-
Add the pieces it builds on: Screen.
-
Copy the animated view into
components/ui/animated-view.tsx:
- Copy the primitives it uses into
components/primitives:
- Copy and paste the following code into
components/ui/bottom-bar.tsx:
- Update the import paths to match your project setup.
- Install the following dependencies:
-
Add the pieces it builds on: Screen.
-
Copy the animated view into
components/ui/animated-view.tsx:
- Copy the primitives it uses into
components/primitives:
- Copy and paste the following code into
components/ui/bottom-bar.tsx:
- Update the import paths to match your project setup.
-
Target iOS 17 or later.
-
Copy the theme files every view uses:
- Copy the source and every file it uses:
- Add the files to your app target.
- Apply the Compose compiler plugin, enable Compose, set
compileSdkto 37 or higher andminSdkto 24 or higher, and add the dependencies:
- Copy the theme files every view uses:
- Copy the source and every file it uses:
- Update the
com.esuiss.uipackage names to match your project.
Usage
Examples
With separator
Set separator to draw a hairline above the bar.

Two actions
A primary and a plain button stacked in BottomBarContent.

Side by side
Back and Next buttons in a row.
Add flex-row to BottomBarContent to place the buttons side by side.

Above keyboard
The bar moving up with the keyboard while an input is focused. Inside a Screen that already handles the bottom safe-area edge, the inset is not added twice.

Accessibility
- The bar adds no role; each action inside provides its own.
API Reference
BottomBar
Bottom container that follows the safe area and keyboard.
| Prop | Type | Default |
|---|---|---|
separator | boolean | false |
Also accepts the props of ViewProps.
Place BottomBar as the last child of the screen so it sits below the scrolling content. separator draws a top border. The padding animation respects the system Reduce Motion setting.
BottomBarContent
Padded area for the actions.
Also accepts the props of ViewProps.
BottomBar
Bottom container that follows the safe area and keyboard.
| Parameter | Type | Default |
|---|---|---|
separator | Bool | true |
content | () -> Content | - |
BottomBarContent
Padded area for the actions.
| Parameter | Type | Default |
|---|---|---|
content | () -> Content | - |
BottomBar
Bottom container that follows the safe area and keyboard.
| Parameter | Type | Default |
|---|---|---|
modifier | Modifier | Modifier |
separator | Boolean | false |
content | @Composable ColumnScope.() -> Unit | - |
BottomBarContent
Padded area for the actions.
| Parameter | Type | Default |
|---|---|---|
modifier | Modifier | Modifier |
horizontalAlignment | Alignment.Horizontal | Alignment.CenterHorizontally |
content | @Composable ColumnScope.() -> Unit | - |




