# Floating toolbar Floating toolbar provides a way to show actions related to the current page. Floating toolbars can be vertical or horizontal. Vertical floating toolbar | Horizontal floating toolbar :----------------------------------------------------------------------------------------------: | :-------------------------: Vertical floating toolbar | Horizontal floating toolbar **Note:** Images use various dynamic color schemes. ## Design & API documentation * [Material 3 (M3) spec](https://m3.material.io/components/toolbars/overview) * API reference in progress ## Anatomy Floating toolbar anatomy diagram 1. Container 2. Elements More details on anatomy items in the [component guidelines](https://m3.material.io/components/toolbars/guidelines#d6b7bcb1-295d-41e6-a051-37f12e1c96ab). ## M3 Expressive ### M3 Expressive update Before you can use `Material3Expressive` component styles, follow the [`Material3Expressive themes` setup instructions](https://github.com/material-components/material-components-android/tree/master/docs/getting-started.md#material3expressive-themes). The floating toolbar expressive.png Floating toolbar show controls relevant to the current page The **floating toolbar** was created for more versatility, greater amounts of actions, and more variety in where it's placed. [More on M3 Expressive](https://m3.material.io/blog/building-with-m3-expressive) **Types and naming:** * Added **floating toolbar** with the following attributes: * Layout: Horizontal or vertical * Color: Standard or vibrant * Flexibility: Can hold many elements and components. Can be paired with FAB. ### M3 Expressive styles There are two styles for the floating toolbar specifying different color schemes: ```xml @style/Widget.Material3Expressive.FloatingToolbar @style/Widget.Material3Expressive.FloatingToolbar.Vibrant ``` Standard Floating Toolbar | Vibrant Floating Toolbar ---------------------------------------------------------------------------------- | ------------------------ ![Standard floating toolbar](assets/floatingtoolbar/standard-floating-toolbar.png) | ![Vibrant floating toolbar](assets/floatingtoolbar/vibrant-floating-toolbar.png) By default, if a style is not specified, a `FloatingToolbar` will use `floatingToolbarStyle` from the theme. There are also styles specific to components inside the floating toolbar that are recommended to be used. Currently, the recommendation exists for icon buttons: `Widget.Material3Expressive.FloatingToolbar.IconButton` and `Widget.Material3Expressive.FloatingToolbar.IconButton.Vibrant`. Example usage: ```xml