Crates.io | floem |
lib.rs | floem |
version | 0.2.0 |
source | src |
created_at | 2023-11-21 22:35:17.414644+00 |
updated_at | 2024-11-14 21:17:56.096401+00 |
description | A native Rust UI library with fine-grained reactivity |
homepage | |
repository | https://github.com/lapce/floem |
max_upload_size | |
id | 1044695 |
size | 2,894,344 |
The project is still maturing. We will make occasional breaking changes and add missing features on our way to v1.
use floem::prelude::*;
fn main() {
floem::launch(counter_view);
}
fn counter_view() -> impl IntoView {
let mut counter = RwSignal::new(0);
h_stack((
button("Increment").action(move || counter += 1),
label(move || format!("Value: {counter}")),
button("Decrement").action(move || counter -= 1),
))
.style(|s| s.size_full().items_center().justify_center().gap(10))
}
Inspired by Xilem, Leptos and rui, Floem aims to be a high performance declarative UI library with a highly ergonomic API.
To sample Floem's capabilities, check out the repo and run the widget gallery example with cargo.
To help you master Floem, we provide documentation and code examples.
Lapdev, developed by the Lapce team, is a cloud dev env service similar to GitHub Codespaces. By clicking the button above, you'll be taken to a fully set up Floem dev env where you can browse the code and start developing. All dependencies are pre-installed, so you can get straight to code.
Contributions welcome! If you'd like to improve how Floem works and fix things, feel free to open an issue or submit a PR. If you'd like a conversation with Floem devs, you can join in the #floem channel on this Discord.