RavenRS · Rust GUI

YearView

Edit and run the YearView RavenRS example in your browser. Explore its Rust code and download a Cargo project for desktop and WebAssembly.

One declarative Rust interface, GPU rendering, reactive state and semantic design tokens. Free and open source under MIT OR Apache-2.0.

Rust source

fn year_view() -> impl View {
    let year = State::new(2026);
    let chosen = State::new(None::<Date>);
    YearView::new(year.binding())
        .selected(chosen.binding())
        .today(Date::new(2026, 11, 5).unwrap_or_else(|| Date::from_days(0)))
        .marks(|day| match day.day() % 11 {
            0 => Some(DayMark::new().tone(Tone::Accent).label("Shoot")),
            5 => Some(DayMark::new().tone(Tone::Success).label("Delivery")),
            _ => None,
        })
}

The interactive preview loads when JavaScript and WebGPU or WebGL2 are available. You can read the guide and examples here at any time.

More examples