2 releases
0.2.1 | Dec 7, 2024 |
---|---|
0.2.0 | Dec 7, 2024 |
#9 in #tabs
452 downloads per month
11KB
259 lines
egui-tabs
A tab view for egui
Usage
Tabs::new(3).show(ui, |ui, state| {
let ind = state.index();
let txt = if ind == 0 {
"Tab A"
} else if ind == 1 {
"Tab B"
} else if ind == 2 {
"Tab C"
} else {
""
};
ui.add(egui::Label::new(txt).selectable(false));
});
Dependencies
~5–10MB
~114K SLoC