RavenRS · Rust GUI

DateRangePicker

Edit and run the DateRangePicker 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 date_range_picker() -> impl View {
    let today = Date::new(2026, 11, 2).unwrap_or_else(|| unreachable!("a valid date"));
    let period = State::new(Some(DateRange::new(today, today.add_days(6))));
    DateRangePicker::new(period.binding(), today)
        .today(today)
        .preset("Last 7 days", DateRange::new(today.add_days(-6), today))
        .preset("Last 30 days", DateRange::new(today.add_days(-29), today))
        .label("Period")
}

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