Viewbuilder

Crates.io version docs.rs docs CI status
Examples


Cross-platform user interface framework for Rust.

This crate provides an HTML-like render API for the backend of a UI. It's built for use as a backend for concoct, but you can bring your own state management tools or build your own framework using this as a backend.

Features

```rust let mut tree = Tree::default(); let root = Element::builder() .alignitems(AlignItems::Center) .justifycontent(JustifyContent::Center) .child(tree.insert("Hello World!")) .build(&mut tree);

viewbuilder::run(tree, root) ```