---
modificationDate: April 09, 2026
title: HorizontalFloatingToolbar
description: A Jetpack Compose HorizontalFloatingToolbar component for displaying a floating action bar.
sourceCodeUrl: 'https://github.com/expo/expo/tree/main/packages/expo-ui'
packageName: '@expo/ui'
platforms: ['android']
---

<AgentInstructions>

## Submitting Feedback

If this page contains errors, outdated information, or gaps that blocked you from completing a task, report it so the docs can be improved:

curl -X POST https://api.expo.dev/v2/feedback/docs-send -H 'Content-Type: application/json' -d '{"url":"/versions/v55.0.0/sdk/ui/jetpack-compose/horizontalfloatingtoolbar/","feedback":"🤖 Agent feedback: <specific, actionable description>"}'

Only submit when you have something specific and actionable to report.

</AgentInstructions>

# HorizontalFloatingToolbar

A Jetpack Compose HorizontalFloatingToolbar component for displaying a floating action bar.
Android

> For the complete documentation index, see [llms.txt](/llms.txt). Use this file to discover all available pages.

Expo UI HorizontalFloatingToolbar matches the official Jetpack Compose [FloatingActionButton API](https://developer.android.com/develop/ui/compose/components/fab) and displays a horizontal toolbar that floats above content, containing action buttons.

## Installation

```sh
npx expo install @expo/ui
```

If you are installing this in an [existing React Native app](/bare/overview), make sure to [install `expo`](/bare/installing-expo-modules) in your project.

## Usage

### Toolbar with FloatingActionButton

Use `IconButton` as direct children for toolbar items, and `HorizontalFloatingToolbar.FloatingActionButton` for the primary action.

```tsx
import { Host, HorizontalFloatingToolbar, IconButton, Icon } from '@expo/ui/jetpack-compose';

export default function ToolbarWithFABExample() {
  return (
    <Host matchContents>
      <HorizontalFloatingToolbar>
        <IconButton onClick={() => console.log('Edit pressed')}>
          <Icon source={require('./assets/edit.xml')} contentDescription="Edit" />
        </IconButton>
        <IconButton onClick={() => console.log('Share pressed')}>
          <Icon source={require('./assets/share.xml')} contentDescription="Share" />
        </IconButton>
        <HorizontalFloatingToolbar.FloatingActionButton onPress={() => console.log('Add pressed')}>
          <Icon source={require('./assets/add.xml')} contentDescription="Add" />
        </HorizontalFloatingToolbar.FloatingActionButton>
      </HorizontalFloatingToolbar>
    </Host>
  );
}
```

## API

```tsx
import { HorizontalFloatingToolbar } from '@expo/ui/jetpack-compose';
```

## Components

### `HorizontalFloatingToolbar`

Supported platforms: Android.

Type: React.[Element](https://www.typescriptlang.org/docs/handbook/jsx.html#function-component)<[HorizontalFloatingToolbarProps](#horizontalfloatingtoolbarprops)\>

Renders a `HorizontalFloatingToolbar` component. A horizontal toolbar that floats above content, typically used for action buttons.

HorizontalFloatingToolbarProps

### `children`

Supported platforms: Android.

Type: `React.ReactNode`

The children of the component.

### `modifiers`

Supported platforms: Android.

Optional • Type: [ExpoModifier[]](/versions/v55.0.0/sdk/ui/jetpack-compose/modifiers#expomodifier)

Modifiers for the component.

### `variant`

Supported platforms: Android.

Optional • Literal type: `string` • Default: `'standard'`

The variant of the horizontal floating toolbar.

Acceptable values are: `'standard'` | `'vibrant'`

### `HorizontalFloatingToolbarFloatingActionButton`

Supported platforms: Android.

Type: React.[Element](https://www.typescriptlang.org/docs/handbook/jsx.html#function-component)<[FloatingActionButtonProps](#floatingactionbuttonprops)\>

FloatingActionButton component for HorizontalFloatingToolbar. This component marks its children to be rendered in the FAB slot.
