A tab view for egui
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));
});