2 releases

0.2.1 Dec 7, 2024
0.2.0 Dec 7, 2024

#9 in #tabs

Download history 324/week @ 2024-12-05 128/week @ 2024-12-12

452 downloads per month

MIT license

11KB
259 lines

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

Dependencies

~5–10MB
~114K SLoC