Up top, a floating navbar; below, a floating toolbar: its blue button folds it away
Floating Navbar vs. Floating Toolbar
/ position: fixed; border-radius: 9999px · backdrop-filter: blur(12px) /
also called floating pill bar, pill navbar, floating island nav, floating action bar, floating dock (web term)
“The floating bar that is not full width” is a floating navbar when it holds a site's links near the top, and a floating toolbar when it holds a page's action buttons, usually near the bottom (Material 3's HorizontalFloatingToolbar). Either one is a rounded pill set a few pixels in from the screen edges (position: fixed), often frosted so the page shows through as it scrolls behind. The toolbar can fold down to one round button and open again. It is not a header, which runs edge to edge, nor a bottom navigation bar, a selection toolbar that exists only while something is selected, or a single floating action button.
If you called it…
…you meant Floating Navbar vs. Floating Toolbar.
Anatomy — every part, named
- 2Floating toolbar
HorizontalFloatingToolbar“The pill at the bottom holding action buttons” is a floating toolbar, a capsule of commands for this page rather than links to other pages.
- 3Collapse toggle
expanded“The button that shrinks the pill down to a dot” is the collapse toggle: it folds the other actions away and brings them back.
Prompt — paste into your agent
Build a floating navbar: a <nav> of site links in a rounded pill (position: fixed; border-radius: 9999px) centered a few pixels below the top edge, narrower than the page, with backdrop-filter: blur(12px) so content shows through as it scrolls behind. Or build a floating toolbar (Material 3 HorizontalFloatingToolbar; on the web, role="toolbar"): a capsule of icon buttons floating above the bottom edge that folds to one button and expands again. Keep either bar off the screen edges, and pad the page so it never covers the last line.
Debug prompt — when it misbehaves
Paste this, then describe what you’re seeing — it hands your agent the classic failure modes to rule out first.
Debug my floating navbar or floating toolbar (position: fixed, backdrop-filter, HorizontalFloatingToolbar, role="toolbar"). Rule out: the bar scrolling away or anchoring to the wrong box because an ancestor has a transform or filter, which re-anchors position: fixed; the frosted look missing because the background is fully opaque or -webkit-backdrop-filter is not set for Safari; the last content hidden under the bar because the page has no bottom padding; the bar covering the phone's home indicator because env(safe-area-inset-bottom) is ignored; icons squishing because the collapse animates scaleX instead of width; folded buttons still reachable with Tab because they are not inert; the bar flickering open and closed because every tiny scroll change toggles it. The symptom:
In code
The exact names this thing goes by in code — each row is one framework’s word for it. Use the row that matches your project (or paste it into your prompt).
| CSS | position: fixed; border-radius: 9999px | lifts the bar off the edges into a pill |
| CSS | backdrop-filter: blur(12px) | the frosted look as the page scrolls behind it |
| Jetpack Compose | HorizontalFloatingToolbar(expanded = …) | Material 3's floating capsule of actions |
| Jetpack Compose | .floatingToolbarVerticalNestedScroll(…) | folds the toolbar as the list scrolls down |
| HTML | <nav> | the landmark for the navbar's links |
| ARIA | role="toolbar" | groups the toolbar's buttons |