RavenRS · Rust GUI

AttachmentStrip

Edit and run the AttachmentStrip 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 attachment_strip() -> impl View {
    // The app holds the list, and changes it when told.
    AttachmentStrip::new([
        Attachment::new("report.pdf").size(120_000),
        Attachment::new("beach.jpg").size(2_400_000).icon(IconName::Image).send_as(
            ["photo", "document"],
            0,
            |_how| {},
        ),
    ])
    .on_remove(|_index| {})
    .width(420.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