#egui #list #dropdown #items #text

egui-dropdown

An actual dropdown list for egui

12 breaking releases

0.13.0 Feb 7, 2025
0.12.0 Dec 18, 2024
0.11.0 Sep 26, 2024
0.10.0 Jul 11, 2024
0.1.0 Nov 3, 2022

#195 in GUI

Download history 282/week @ 2024-11-29 416/week @ 2024-12-06 546/week @ 2024-12-13 211/week @ 2024-12-20 192/week @ 2024-12-27 265/week @ 2025-01-03 889/week @ 2025-01-10 816/week @ 2025-01-17 749/week @ 2025-01-24 792/week @ 2025-01-31 931/week @ 2025-02-07 574/week @ 2025-02-14 655/week @ 2025-02-21 670/week @ 2025-02-28 860/week @ 2025-03-07 1079/week @ 2025-03-14

3,359 downloads per month
Used in 7 crates (via talon-gui)

MIT license

27KB
134 lines

egui-dropdown

Dropdown list for egui.

Installation

[dependencies]
egui-dropdown = "0.11"

Usage

// Working example can be found in `examples/dropdown.rs`

ui.add(DropDownBox::from_iter(
    &self.items,
    "test_dropbox",
    &mut self.buf,
    |ui, text| ui.selectable_label(false, text)
));

Naming

Although it's called DropDownBox, technically speaking it should be called ComboBox. But this is what egui uses for its version of the widget so yeah.


lib.rs:

egui-dropdown

Dependencies

~4.5–9MB
~90K SLoC