Dropdown
Actions
Takes a block
Button that opens a menu of Dropdown.Items.
Dropdown(label) { … }
Example
Dropdown(label: "Actions") {
Dropdown.Item { Text("Duplicate") }
Dropdown.Divider
Dropdown.Item { Text("Archive") }
}
Renders with the class wf-dropdown, stable across releases, so a stylesheet may target it.
| Prop | Type | Meaning |
|---|---|---|
| label | String (positional) |
Label of the button that opens it |
Attribute families: global, aria, data. Plus the universal props on every element: animate:, exit:, speed:, class:, ref:.
On this entry
Generated, not written
This page comes from the compiler's registry. Edit the registry, not the page — a prop added there shows up here on the next release.
wf registry --json