Toolbar

Toolbar

Floating and docked MD3 Expressive toolbars
npx rootnative add toolbar
Nothing pressed yet.
StandardA 64dp pill on surfaceContainer. The format buttons are toggles: a selected one fills with secondaryContainer. The last button is disabled.
VibrantprimaryContainer, for more emphasis. A selected toggle fills with surfaceContainer.
Over the content
The toolbar floats 16dp above the bottom edge, centred. The content ends with room for it.
Content row 1Content row 2Content row 3Content row 4Content row 5Content row 6Content row 7Content row 8Content row 9Content row 10Content row 11Content row 12
Vertical
A palette of tools in a column, 24dp from the end edge and centred on the side. The tools are toggles: one is selected at a time.
Canvas row 1Canvas row 2Canvas row 3Canvas row 4Canvas row 5Canvas row 6Canvas row 7Canvas row 8Canvas row 9Canvas row 10Canvas row 11Canvas row 12
Expand and collapseUndo and More options show only while the toolbar is expanded. The middle buttons always show.
With a FABCollapsed, the toolbar closes toward the FAB, and the FAB grows from 56dp to 80dp. The FAB keeps its place.
Docked
A full-width 64dp bar for the bottom of a screen, with no corner and no shadow. The items are spaced between. In a real app shell, pass insetBottom to clear the home indicator.
Docked, fixed and vibrant
arrangement="fixed" centres the items 32dp apart.
Hide on scroll
Scroll the rows. The floating toolbar moves down by its size and its 16dp offset while the content scrolls down, and comes back while it scrolls up.
Message row 1Message row 2Message row 3Message row 4Message row 5Message row 6Message row 7Message row 8Message row 9Message row 10Message row 11Message row 12Message row 13Message row 14Message row 15Message row 16
A docked toolbar moves down by its height.
Message row 1Message row 2Message row 3Message row 4Message row 5Message row 6Message row 7Message row 8Message row 9Message row 10Message row 11Message row 12Message row 13Message row 14Message row 15Message row 16
OverridescontainerColor and contentColor. A selected toggle keeps the selected colors of its color style.