← Components / Navigation

Top app bar

Titles and actions for the current screen. Medium and large flexible bars collapse with the content via collapsedFraction.

SwiftUIReact Native · Coming soonFlutter · Coming soon
☰⌕

Inbox

12 unread

Usage

SwiftUI
M3ETopAppBar("Inbox", subtitle: "12 unread", variant: .large,
             navigationIcon: .init("menu") {}, actions: [.init("search") {}],
             collapsedFraction: collapse)

API

PropertySwiftUIDescription
variantM3ETopAppBarVariantsmall, centerAligned, medium, large (flexible).
collapsedFractionDouble0 expanded … 1 collapsed; drive it from scroll.

Guidelines

  • Use large app bars for top-level screens, small for detail screens.