goyda 0.1.2

A Rust UI toolkit that compiles the same app to Windows, Android, and web
docs.rs failed to build goyda-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: goyda-0.1.3

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