Usage
SwiftUI
M3ETabs(items: [.init("Flights", icon: "flight"), .init("Trips", badge: "2")], selection: $tab)API
| Property | SwiftUI | Description |
|---|---|---|
| variant | .primary .secondary | Primary under app bars; secondary within content. |
| scrollable | scrollable: Bool | For many tabs. |
Guidelines
- Keep tab labels short and parallel.