Components / ZStack
ZStack
Views on top of each other, in a box as large as the largest.
Example
The component itself, running in WebAssembly, beside its code in a playground. Try it.
Code
use ravenrs::prelude::*;
fn z_stack() -> impl View {
ZStack::new((
Spacer::new().frame(Some(220.0), Some(80.0)).background(Semantic::Accent).corner_radius(8.0),
Badge::new("On top").tone(Tone::Success),
))
.align(Align::Center)
}