Usage
SwiftUI
M3ESplitButton("Send", icon: "send", menuItems: [
.init("Schedule send", icon: "schedule") { schedule() },
]) { send() }API
| Property | SwiftUI | Description |
|---|---|---|
| label / icon | _ label, icon: | The primary action. |
| menuItems | [M3EMenuItem] | Alternatives in the menu. |
| variant | M3EButtonVariant | Color style. |
| size | M3EButtonSize | Button size. |
Guidelines
- The leading action must be the most common choice.
- Use when the alternatives are variations of the same action.