Skip to content
QuaUI

QuaUI

Cross-platform UI in Rust and TSX.

Compose text, controls and media in logical pixels. Render the same surface in the DOM, a scene graph or a native host.

QuaUI’s origami crane with cherry-blossom wings and mint paper folds

One button, two ways to write it

Switch the source, then press Continue. Each version sends the same action to the host.

use quaui::prelude::*;

fn continue_button() -> Result<Surface, LayoutError> {
    button("next", "Continue →")
        .size(152.0, 48.0)
        .rounded(12.0)
        .font_size(18.0)
        .bg("#a34161")
        .color("#ffffff")
        .on_click("advance")
        .compile(152.0, 48.0)
}
DOM preview
Waiting for a click
QuaUI · QuaDevTeam · Apache-2.0