Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 425 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 425 Bytes

egui-tabs

A tab view for egui

Demo

Usage

example

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