#egui #dropdown #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

#209 in GUI

Download history 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 1126/week @ 2025-03-14 701/week @ 2025-03-21 680/week @ 2025-03-28 818/week @ 2025-04-04 950/week @ 2025-04-11 665/week @ 2025-04-18 943/week @ 2025-04-25 943/week @ 2025-05-02 782/week @ 2025-05-09 460/week @ 2025-05-16

3,269 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–9.5MB
~89K SLoC