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

Download history 267/week @ 2025-12-24 607/week @ 2025-12-31 379/week @ 2026-01-07 278/week @ 2026-01-14 230/week @ 2026-01-21 366/week @ 2026-01-28 186/week @ 2026-02-04 310/week @ 2026-02-11 277/week @ 2026-02-18 175/week @ 2026-02-25 127/week @ 2026-03-04 443/week @ 2026-03-11 151/week @ 2026-03-18 230/week @ 2026-03-25 217/week @ 2026-04-01 188/week @ 2026-04-08

828 downloads per month
Used in 5 crates (4 directly)

MIT license

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,
    ));
  }
}

Crates.io Documentation codecov Dependency status

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