Usage
SwiftUI
M3EFabMenu(isExpanded: $open, items: [
.init("Reply", icon: "reply") { reply() },
.init("Share", icon: "share") { share() },
])API
| Property | SwiftUI | Description |
|---|---|---|
| items | [M3EFabMenuItem] | Label, icon and action per item. |
| expanded | isExpanded: Binding<Bool> | Controls whether the menu is open. |
| icon | icon / checkedIcon | Closed and open icons. |
| color | M3EFabMenuColor | Color family. |
Guidelines
- Use for 2–6 related actions.
- Order items by frequency, the most used closest to the FAB.