#egui #text #from-iter

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

#231 in GUI

Download history 443/week @ 2024-12-08 528/week @ 2024-12-15 129/week @ 2024-12-22 203/week @ 2024-12-29 341/week @ 2025-01-05 971/week @ 2025-01-12 901/week @ 2025-01-19 610/week @ 2025-01-26 1012/week @ 2025-02-02 761/week @ 2025-02-09 532/week @ 2025-02-16 712/week @ 2025-02-23 605/week @ 2025-03-02 1009/week @ 2025-03-09 953/week @ 2025-03-16 745/week @ 2025-03-23

3,396 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.

Dependencies

~4.5–9MB
~90K SLoC