Dropdown
A select box.
The trigger fills the width of its parent, like a form field; in a toolbar row give it .width(..).
GUITUIRuns in the browser
dropdownPreview
























Usage example
fn dropdown_demo() -> DropdownBuilder { dropdown( signal(1_usize), vec!["Small".into(), "Medium".into(), "Large".into()], )}fn dropdown_demo() -> DropdownBuilder { dropdown( signal(1_usize), vec![ "Small".into(), "Medium".into(), "Large".into(), ], )}States

Default
Hover
Pressed
Focused
Disabled
Open
API
| Name | Signature | Purpose |
|---|---|---|
dropdown | fn dropdown(selected: Signal<usize>, options: Vec<String>) -> DropdownBuilder | A select box. The trigger fills the width of its parent, like a form field; in a toolbar row give it .width(..). |