Components / Section

Section

Titled group of content with an optional description.

Example

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

Code

use ravenrs::prelude::*;

fn section() -> impl View {
    Section::new(
        "Notifications",
        (Text::new("Grouped content under a title.").foreground(Semantic::InkMuted),),
    )
    .action(Button::new("Edit").style(ButtonStyle::Secondary).size(ButtonSize::Small))
}

Open in the playground, with every example →

Full API of Section →