Components / HeroBanner

HeroBanner

Wide band in a strong color, readable from across the room.

Example

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

Code

use ravenrs::prelude::*;

fn hero_banner() -> impl View {
    VStack::new((
        HeroBanner::new("You can remove the card").icon(IconName::CircleCheck).tone(Tone::Success),
        HeroBanner::new("Do not remove the card").icon(IconName::CircleAlert).tone(Tone::Danger),
    ))
    .spacing(12.0)
    .align(Align::Stretch)
}

Open in the playground, with every example →

Full API of HeroBanner →