RavenRS · Rust GUI

Anchor

Edit and run the Anchor 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 anchor() -> impl View {
    let rows: Vec<AnyView> = (1..=12).map(|n| Box::new(Text::new(format!("Row {n}"))) as AnyView).collect();
    ScrollView::new((
        Link::new("Jump to the summary", "#summary"),
        VStack::new(rows).spacing(8.0),
        Anchor::new("summary", Text::new("Summary").style(TextStyle::Title)),
        Canvas::new(|_, _| {}).size(10.0, 160.0),
    ))
    .spacing(12.0)
    .height(200.0)
}

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