Bottom App Bar
Actions for the current screen, with the primary one as a FAB at the end. It is not navigation: for destinations use the Navigation Bar. Scroll inside each frame to see it respond.
Install
npx shadcn@latest add @nelumbo/app-barTop and bottom bars share one scroll engine, so they ship together in the app-bar item.
Standard
80px on surface-container, plus the home-indicator inset. Up to four actions at the start and an optional FAB at the end.
Actions and FAB
Actions only
Hide on scroll
The bar slides down while you scroll down and returns the moment you scroll up, or when keyboard focus moves into it.
Hide on scroll
Floating
Material 3 Expressive: a rounded 64px bar that floats above the content instead of docking to the edge.
Floating
Floating, hides on scroll
Usage
Place it as the last child of the scroller. It is position: sticky at the bottom.
import { BottomAppBar, BottomAppBarActions, BottomAppBarAction, BottomAppBarFab } from "@/components/ui/app-bar"<div ref={scroller} className="h-dvh overflow-y-auto"> <Messages /> <BottomAppBar aria-label="Message actions" hideOnScroll scrollTarget={scroller}> <BottomAppBarActions> <BottomAppBarAction icon="check_box" label="Select" /> <BottomAppBarAction icon="archive" label="Archive" /> </BottomAppBarActions> <BottomAppBarFab icon="edit" label="Compose" /> </BottomAppBar></div>Props
| Prop | Type | Default | Notes |
|---|---|---|---|
BottomAppBar floating | boolean | false | Rounded 64px bar that floats |
hideOnScroll | boolean | false | Slide away scrolling down |
scrollTarget | RefObject | HTMLElement | window | The scrolling container |
aria-label | string | Gives the bar role=toolbar and a name | |
BottomAppBarActions | children | Up to four BottomAppBarAction | |
BottomAppBarAction | IconButton props | 48px button with a tooltip; label required | |
BottomAppBarFab | Fab props | The primary action at the end |