Freya 🦀

Freya logo

Discord Server Github Sponsors codecov

Website | Docs | Book | Discord

Freya is a native GUI library for Rust powered by 🧬 Dioxus and 🎨 Skia.

⚠️ It's currently work in progress and not usable for production, but you can already play with it! You can join the Discord server if you have any question or issue.



```rust, no_run fn app(cx: Scope) -> Element { let mut count = use_state(cx, || 0); render!( rect { height: "20%", width: "100%", background: "rgb(233, 196, 106)", padding: "12", color: "rgb(20, 33, 61)", label { font_size: "20", "Number is: {count}" } } rect { height: "80%", width: "100%", background: "rgb(168, 218, 220)", color: "black", padding: "12", onclick: move |_| count += 1, label { "Click to increase!" } } ) } ``` ![Freya](./demo.png)

Want to try it? 🤔

⚠️ First, see Environment setup.

Clone this repo and run:

shell cargo run --example counter

You can also try freya-template

Usage 📜

Add Freya and Dioxus as dependencies:

toml freya = "0.1" dioxus = { version = "0.4", features = ["macro", "hooks"] }

Features ✨

Goals 😁

Status ⌚

You can see the tracking issue to know what features are implemented and which ones are not, yet.

MIT License