Skip to content

damus-io/egui-tabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published