mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
28 lines
553 B
Rust
28 lines
553 B
Rust
use dioxus::prelude::*;
|
|
|
|
fn main() {
|
|
dioxus_tui::launch(app);
|
|
}
|
|
|
|
fn app() -> Element {
|
|
rsx! {
|
|
div {
|
|
width: "100%",
|
|
height: "100%",
|
|
flex_direction: "column",
|
|
border_width: "1px",
|
|
|
|
h1 { height: "2px", color: "green",
|
|
"that's awesome!"
|
|
}
|
|
|
|
ul {
|
|
flex_direction: "column",
|
|
padding_left: "3px",
|
|
for i in 0..10 {
|
|
"> hello {i}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|