AppBar
A top bar: title, optional subtitle and back button, leading/trailing slots.
Group: Layout · Kind: macro · in the lite catalog
Preview
Section titled “Preview”Platforms
Section titled “Platforms”The same specimen painted by React, SwiftUI, Compose and gpui.




| Prop | Type | Required | Bindable | Description |
|---|---|---|---|---|
title |
string |
yes | yes | The screen title. |
subtitle |
string |
– | yes | A muted line under the title. |
back |
boolean |
– | – | Shows a back button that fires back. Default false. |
Events
Section titled “Events”on.back: runs an action
leading: one component by idtrailing: one component by id
Children
Section titled “Children”none
A2UI basic mapping
Section titled “A2UI basic mapping”No basic catalog component maps here.
Built from
Section titled “Built from”Accessibility
Section titled “Accessibility”Role: banner
banner (heading level 1 = the title). The title is heading level 1; the back button is labelled back ($a11y).
| Keys | Action |
|---|---|
| – | Enter, Space on back |
Theming
Section titled “Theming”Recipe parts: AppBar/root AppBar/back AppBar/body AppBar/title AppBar/subtitle
Keyed by: :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover
Related
Section titled “Related”Button · Text · Page · Box · Stack · Grid · Card · Separator