← Components / Actions

Split button

Pairs a default action with related alternatives. The trailing segment morphs to a circle while its menu is open.

SwiftUIReact Native · Coming soonFlutter · Coming soon
➤ Send⌄
Export⌃

Usage

SwiftUI
M3ESplitButton("Send", icon: "send", menuItems: [
  .init("Schedule send", icon: "schedule") { schedule() },
]) { send() }

API

PropertySwiftUIDescription
label / icon_ label, icon:The primary action.
menuItems[M3EMenuItem]Alternatives in the menu.
variantM3EButtonVariantColor style.
sizeM3EButtonSizeButton size.

Guidelines

  • The leading action must be the most common choice.
  • Use when the alternatives are variations of the same action.