Skip to content
esc

AppBar

Navigationshadcn/ui

Top bar of a mobile screen: back or menu on the left, title, up to two actions on the right. Large-title variant for top-level screens.

When to use

  • Use large-title on the first screen of each tab and inline after navigating deeper.
  • Give every icon action an aria-label.
  • Don't put more than two actions; move the rest to a Menu.
  • Don't use a primary Button in the AppBar; actions are ghost.

Accessibility

Role
banner (header) with h1
Keyboard
Leading, then actions, in tab order.
Notes
Only one h1 per screen: the AppBar title.

Props

  • title

    ReactNode

    Screen title.

  • subtitle

    ReactNode

    Small context line.

  • leading

    ReactNode

    Back or menu button.

  • actions

    ReactNode

    Right-side actions.

  • variant= 'inline'

    'inline' | 'large-title'

    Title style.

  • bordered= false

    boolean

    Bottom divider.

Prompt for your agent

Use the UnbuiltUI AppBar. Call unbuilt_get_component("AppBar") first and follow its spec: variants, states, usage rules and accessibility.

unbuilt_get_component returns

4 variants1 state6 props4 usage rules2 a11y notes4 tokens2 examples

Add it with shadcn

$npx shadcn add https://unbuiltui.com/r/app-bar.json

Tokens · 4

bg.canvasfg.defaultfg.mutedborder.subtle