RavenRS · Rust GUI

ScrollEdgeArrow

Edit and run the ScrollEdgeArrow 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 scroll_edge_arrow() -> impl View {
    let photos: Vec<AnyView> = (1..=24)
        .map(|n| -> AnyView {
            Box::new(
                Text::new(format!("Photo {n}"))
                    .style(TextStyle::Callout)
                    .centered()
                    .frame(Some(120.0), Some(72.0))
                    .background(Semantic::Control)
                    .corner_radius(6.0),
            )
        })
        .collect();
    ScrollEdgeArrow::new(photos).fade(Semantic::SurfaceElevated)
}

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