20 releases (12 major breaking)
| 12.0.0 | Nov 2, 2025 |
|---|---|
| 11.0.0 | Aug 27, 2025 |
| 10.2.0 | May 3, 2025 |
| 9.0.0 | Jan 25, 2025 |
| 0.1.1 | Jul 19, 2023 |
#344 in GUI
828 downloads per month
Used in 5 crates
(4 directly)
21KB
357 lines
Example
use egui_autocomplete::AutoCompleteTextEdit;
struct AutoCompleteExample {
// User entered text
text: String,
// A list of strings to search for completions
inputs: Vec<String>,
}
impl AutoCompleteExample {
fn update(&mut self, _ctx: &egui::Context, ui: &mut egui::Ui) {
ui.add(AutoCompleteTextEdit::new(
&mut self.text,
&self.inputs,
));
}
}
egui_autocomplete
An extension to the egui::TextEdit that allows for a dropdown box with autocomplete to popup while typing.
You can select the suggestions with arrows keys + enter/tab or mouse clicks.
View web example here
To enable egui persistence, enable the serde feature
Dependencies
~5.5MB
~103K SLoC