Components / PageHeader

PageHeader

Title, description, badges and actions at the top of a page.

Example

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

Code

use ravenrs::prelude::*;

fn page_header() -> impl View {
    PageHeader::new("Sessions")
        .description("Every shoot, newest first.")
        .badge(Badge::new("12"))
        .action(Button::new("New session").icon(IconName::Plus))
}

Open in the playground, with every example →

Full API of PageHeader →