← Components / Actions

FAB menu

Opens up to six related actions from a FAB. The FAB morphs from its container shape to a round close button while the items spring in with a stagger.

SwiftUIReact Native · Coming soonFlutter · Coming soon
ReplyShare×

Usage

SwiftUI
M3EFabMenu(isExpanded: $open, items: [
  .init("Reply", icon: "reply") { reply() },
  .init("Share", icon: "share") { share() },
])

API

PropertySwiftUIDescription
items[M3EFabMenuItem]Label, icon and action per item.
expandedisExpanded: Binding<Bool>Controls whether the menu is open.
iconicon / checkedIconClosed and open icons.
colorM3EFabMenuColorColor family.

Guidelines

  • Use for 2–6 related actions.
  • Order items by frequency, the most used closest to the FAB.