dioxus/examples
2022-02-17 16:06:28 -06:00
..
border.rs added alpha channel 2022-02-17 16:06:28 -06:00
color_test.rs added alpha channel 2022-02-17 16:06:28 -06:00
components.rs fix: cargo fmt and readme update 2022-02-04 17:57:00 -05:00
example.png wip: add an image 2022-01-01 01:08:31 -05:00
frame.rs updates: move to stable versions 2022-01-12 09:40:36 -05:00
hover.rs added more mouse events 2022-02-07 05:57:57 -06:00
keys.rs fixed mouse 2022-02-06 07:08:15 -06:00
layouts.rs fix: cargo fmt and readme update 2022-02-04 17:57:00 -05:00
list.rs updates: move to stable versions 2022-01-12 09:40:36 -05:00
margin.rs updates: move to stable versions 2022-01-12 09:40:36 -05:00
quadrants.rs updates: move to stable versions 2022-01-12 09:40:36 -05:00
readme.rs updates: move to stable versions 2022-01-12 09:40:36 -05:00
strecher.rs feat: wire up stretch into place 2021-12-31 23:53:37 -05:00
task.rs added component rendering and updated dioxus version 2022-02-04 07:24:02 -06:00
text.rs added alpha channel 2022-02-17 16:06:28 -06:00
ui.rsx updates: move to stable versions 2022-01-12 09:40:36 -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!"
        }
    })
}