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.

Props of Dropdown
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:.