Skip to content

App bar

A home for the title, navigation, and actions of a screen.

My collection

Try the navigation icon.

Installation

Terminal
pnpm dlx shadcn@latest add https://react-toolbox.io/r/app-bar.json

New here? Set up your project first. Styles, fonts, and required components are included.

Usage

Name icon buttons with leftIconLabel and rightIconLabel. Use fixed to keep the bar at the top of the viewport, or scrollHide to hide it as the window scrolls down.

API reference

Key props and defaults. Full types and inline documentation are included with the source in material/app-bar.

AppBar

Property Type Default
fixed boolean false
flat boolean false
leftIconLabel string —
rightIconLabel string —
scrollHide boolean false

Material guidelines

  • Place navigation at the leading edge, the screen title next, and relevant actions at the trailing edge. Move less frequent actions into an overflow menu.
  • Use the responsive toolbar height: 56px on portrait phones, 48px on landscape phones, and 64px on larger screens. Keep icon actions within 48px touch targets.

Material Design 1: Structure