dioxus/examples/tui_readme.rs

20 lines
349 B
Rust
Raw Normal View History

2022-01-01 06:08:31 +00:00
use dioxus::prelude::*;
fn main() {
2022-03-09 18:36:30 +00:00
dioxus::tui::launch(app);
2022-01-01 06:08:31 +00:00
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
div {
width: "100%",
height: "10px",
background_color: "red",
justify_content: "center",
align_items: "center",
"Hello world!"
}
})
}