Menu
Navigation
Takes a block
Menu opened by a trigger button.
Menu(trigger: …, label: …) { … }
Example
Menu(trigger: "Options") {
Menu.Item { Text("Rename") }
Menu.Divider
Menu.Item { Text("Delete") }
}
Renders with the class wf-menu, stable across releases, so a stylesheet may target it.
| Prop | Type | Meaning |
|---|---|---|
| trigger: | String |
Label of the button that opens the menu |
| label: | String |
Same as |
Attribute families: global, aria, data. Plus the universal props on every element: animate:, exit:, speed:, class:, ref:.