AppBar
Navigationshadcn/uiTop 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
titleReactNodeScreen title.
subtitleReactNodeSmall context line.
leadingReactNodeBack or menu button.
actionsReactNodeRight-side actions.
variant= 'inline''inline' | 'large-title'Title style.
bordered= falsebooleanBottom 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.jsonTokens · 4
bg.canvasfg.defaultfg.mutedborder.subtle