Components / Sheet
Sheet
Panel that slides over the UI from one edge.
Example
The component itself, running in WebAssembly, beside its code in a playground. Try it.
Code
use ravenrs::prelude::*;
fn sheet() -> impl View {
let open = State::new(false);
let show = open.clone();
let active = State::new(true);
VStack::new((
Button::new("Open filters").style(ButtonStyle::Secondary).on_click(move || show.set(true)),
Sheet::new(open.binding(), "Filters")
.description("Narrow down the accounts shown.")
.content(Toggle::new(active.binding()).label("Only active accounts")),
))
}