Evan Almloff 3f31b9de43 fix tests пре 1 година
..
all_terminal_events.rs ed4709101c fix duplicate example names пре 2 година
border.rs f34fa5d974 Move dioxus-specifc code into dioxus-tui crate and rename core crate to Rink пре 2 година
buttons.rs f34fa5d974 Move dioxus-specifc code into dioxus-tui crate and rename core crate to Rink пре 2 година
color_test.rs f34fa5d974 Move dioxus-specifc code into dioxus-tui crate and rename core crate to Rink пре 2 година
colorpicker.rs 2871c8bb4d Don't use boxed cell slice, use a refcell instead пре 1 година
example.png f34fa5d974 Move dioxus-specifc code into dioxus-tui crate and rename core crate to Rink пре 2 година
flex.rs f34fa5d974 Move dioxus-specifc code into dioxus-tui crate and rename core crate to Rink пре 2 година
hover.rs 3f31b9de43 fix tests пре 1 година
list.rs f34fa5d974 Move dioxus-specifc code into dioxus-tui crate and rename core crate to Rink пре 2 година
many_small_edit_stress.rs ed4709101c fix duplicate example names пре 2 година
margin.rs f34fa5d974 Move dioxus-specifc code into dioxus-tui crate and rename core crate to Rink пре 2 година
quadrants.rs ed4709101c fix duplicate example names пре 2 година
readme_hello_world.rs ed4709101c fix duplicate example names пре 2 година
task.rs f34fa5d974 Move dioxus-specifc code into dioxus-tui crate and rename core crate to Rink пре 2 година
text.rs f34fa5d974 Move dioxus-specifc code into dioxus-tui crate and rename core crate to Rink пре 2 година
widgets.rs 625dc662d2 make TUI widgets cross framework пре 2 година

readme_hello_world.rs

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!"
}
})
}