Goyda: Cross-Platform UI Toolkit

anybodyy1 pts1 comments

GitHub - user-with-username/goyda: A cross-platform Rust UI toolkit · GitHub

/" data-turbo-transient="true" />

Skip to content

Search/

Sign in<br>Sign upAppearance settings

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

user-with-username

goyda

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>43 Commits<br>43 Commits

.github/workflows

.github/workflows

crates

crates

examples

examples

.gitattributes

.gitattributes

.gitignore

.gitignore

CODE_OF_CONDUCT.md

CODE_OF_CONDUCT.md

CONTRIBUTING.md

CONTRIBUTING.md

Cargo.lock

Cargo.lock

Cargo.toml

Cargo.toml

LICENSE

LICENSE

README.md

README.md

View all files

Repository files navigation

goyda

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

Component {<br>let mut count = 0;

stack! {<br>direction: Vertical,<br>spacing: 16,

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

button {<br>text: "+1",<br>on_click: count += 1,<br>.background(Color::GREEN)<br>.px(4)<br>.py(2)<br>.rounded(2)<br>.p(24)<br>}">use goyda::prelude::{page, stack, Component, Color};

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

stack! {<br>direction: Vertical,<br>spacing: 16,

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

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

Install the CLI:

cargo install goy

Scaffold a project:

goy new my-app<br>cd my-app<br>goy run windows

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

License

MIT

About<br>A cross-platform Rust UI toolkit<br>Resources<br>Readme<br>MIT license<br>Code of conduct<br>Code of conduct<br>Contributing<br>Contributing<br>Activity<br>Stars<br>1 star<br>Watchers<br>0 watching<br>Forks<br>0 forks<br>Report repository

Releases

Packages

Contributors

Languages

You can’t perform that action at this time.

count color goyda cargo toolkit github

Related Articles