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
| Property | SwiftUI | Description |
|---|---|---|
| items | [M3EToolbarItem] | Icon buttons; checked makes a toggle. |
| fab | M3EToolbarItem? | Optional FAB beside the toolbar. |
| colors | .standard .vibrant | Surface or primary container. |
| expanded / vertical | expanded, vertical | Collapse and orientation. |
Guidelines
- Use for contextual actions on the current content, such as editing tools.