Components / Layout

AppBar macrolite

A top bar with a title, an optional subtitle and back button, and leading/trailing slots for controls.

Built from
BoxButtonText
Children
none
Loading the renderer…
AppBar rendered by the React renderer on Web
Web React
AppBar rendered by the SwiftUI renderer on iOS
iOS SwiftUI
AppBar rendered by the Compose renderer on Android
Android Compose
AppBar rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-app-bar, painted by each native renderer.

PropTypeDefaultDescription
titlerequiredbindstring–The screen title.
subtitlebindstring–A muted line under the title.
backbooleanfalseShows a back button that fires back.
NameKind
on.backevent: runs an action
leadingslot: one component by id
trailingslot: one component by id
Role
banner
Semantics
banner (heading level 1 = the title). The title is heading level 1; the back button is labelled back ($a11y).
KeysAction
–Enter, Space on back
Recipe parts
AppBar/rootAppBar/backAppBar/bodyAppBar/titleAppBar/subtitle
Keyed by
:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme