Components / StatusBar

StatusBar

One fixed line at the foot of an app window.

Example

The component itself, running in WebAssembly, beside its code in a playground. Try it.

Code

use ravenrs::prelude::*;

fn status_bar() -> impl View {
    StatusBar::new()
        .left((StatusBar::action("Version 27.1"),))
        .center((
            StatusBar::text("Version 27.2 is available").truncate().grow(1.0),
            StatusBar::action("What's new"),
            StatusBar::action("Update").style(ButtonStyle::Primary),
        ))
        .center_tone(Tone::Warning)
        .right((StatusBar::text("12 items"),))
}

Open in the playground, with every example →

Full API of StatusBar →