Expand description
NumberInput — a numeric field flanked by − / + stepper buttons.
Wraps a single-line egui::TextEdit in the same themed frame as
Input, keeps an internal text buffer so partial
edits (e.g. "1.") don’t fight the bound value, and clamps to
[min, max]. Edits the bound f64; the returned Response reports
.changed() whenever the value changes.
ⓘ
ui.add(sc::NumberInput::new(&mut qty).range(0.0..=99.0).step(1.0));