← Components / Navigation

Toolbars

M3 Expressive toolbars replace the bottom app bar. The floating toolbar can collapse while scrolling.

SwiftUIReact Native · Coming soonFlutter · Coming soon
BIU🔗+

Usage

SwiftUI
M3EFloatingToolbar(items: [
  .init("format_bold", label: "Bold", checked: bold) { bold.toggle() },
  .init("link", label: "Link") {},
], fab: .init("add", label: "Add") {}, colors: .vibrant)

API

PropertySwiftUIDescription
items[M3EToolbarItem]Icon buttons; checked makes a toggle.
fabM3EToolbarItem?Optional FAB beside the toolbar.
colors.standard .vibrantSurface or primary container.
expanded / verticalexpanded, verticalCollapse and orientation.

Guidelines

  • Use for contextual actions on the current content, such as editing tools.