egui_tabs

Crates.ioegui_tabs
lib.rsegui_tabs
version0.2.1
sourcesrc
created_at2024-12-07 21:26:49.004041
updated_at2024-12-07 21:35:40.786633
descriptionA tabs control for egui
homepage
repositoryhttps://github.com/damus-io/egui-tabs
max_upload_size
id1475892
size10,865
William Casarin (jb55)

documentation

README

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));
});
Commit count: 51

cargo fmt