goyda 0.1.3

A Rust UI toolkit that compiles the same app to Windows, Android, and web
Documentation

goyda

A Rust UI toolkit that compiles the same app to Windows, Android, and web

use goyda::prelude::{page, stack, Component, Color};

#[page("/")]
pub fn counter_page() -> Component {
    let mut count = 0;

    stack! {
        direction: Vertical,
        spacing: 16,

        text { "Count: ", count }
            .color(Color::GRAY),

        button {
            text: "+1",
            on_click: count += 1,
        }
            .background(Color::GREEN)
            .px(4)
            .py(2)
            .rounded(2)
    }
    .p(24)
}

Install the CLI:

cargo install goy

Scaffold a project:

goy new my-app

cd my-app

goy run windows

r hot-reloads, R does a full reload, q quits.

License

MIT