Components / Alert
Alert
Tinted message box with an icon, a title and a description.
Example
The component itself, running in WebAssembly, beside its code in a playground. Try it.
Code
use ravenrs::prelude::*;
fn alert() -> impl View {
VStack::new((
Alert::new("Deployment finished", "The site is live.").tone(Tone::Success),
Alert::new("Payment failed", "Update your card.").tone(Tone::Danger),
Alert::message("Moving deletes the originals.").tone(Tone::Warning).compact(),
))
.spacing(12.0)
.align(Align::Stretch)
}