# Floem
A native Rust UI library with fine-grained reactivity
[![crates.io](https://img.shields.io/crates/v/floem.svg)](https://crates.io/crates/floem)
[![docs.rs](https://docs.rs/floem/badge.svg)](https://docs.rs/floem)
[![Discord](https://img.shields.io/discord/946858761413328946?color=%237289DA&label=discord)](https://discord.gg/RB6cRYerXX)
_The project is still maturing. We will make occasional breaking changes and add missing features on our way to v1._
## Quickstart
```rust
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))
}
```