feat: update examples for tui

This commit is contained in:
Jonathan Kelley committed 2022-03-09 13:36:30 -05:00
1 parent 58a20913b6
commit 50d509688d
17 files changed
+119 -241

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
use dioxus::prelude::*;
fn main() {
dioxus::tui::launch(app);
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
div {
width: "100%",
height: "10px",
background_color: "red",
justify_content: "center",
align_items: "center",
"Hello world!"
}
})
}