dioxus/packages/tui/examples
Jonathan Kelley 37cf9bb9d2 feat: add tui
2022-03-09 12:55:30 -05:00
..
border.rs feat: add tui 2022-03-09 12:55:30 -05:00
color_test.rs feat: add tui 2022-03-09 12:55:30 -05:00
components.rs feat: add tui 2022-03-09 12:55:30 -05:00
example.png feat: add tui 2022-03-09 12:55:30 -05:00
frame.rs feat: add tui 2022-03-09 12:55:30 -05:00
hover.rs feat: add tui 2022-03-09 12:55:30 -05:00
keys.rs feat: add tui 2022-03-09 12:55:30 -05:00
layouts.rs feat: add tui 2022-03-09 12:55:30 -05:00
list.rs feat: add tui 2022-03-09 12:55:30 -05:00
margin.rs feat: add tui 2022-03-09 12:55:30 -05:00
quadrants.rs feat: add tui 2022-03-09 12:55:30 -05:00
readme.rs feat: add tui 2022-03-09 12:55:30 -05:00
strecher.rs feat: add tui 2022-03-09 12:55:30 -05:00
task.rs feat: add tui 2022-03-09 12:55:30 -05:00
text.rs feat: add tui 2022-03-09 12:55:30 -05:00
ui.rsx feat: add tui 2022-03-09 12:55:30 -05:00

use dioxus::prelude::*;

fn main() {
    rink::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!"
        }
    })
}