dioxus/examples/custom_assets.rs

16 lines
313 B
Rust
Raw Normal View History

2022-01-27 21:36:17 +00:00
use dioxus::prelude::*;
fn main() {
dioxus_desktop::launch(app);
2022-01-27 21:36:17 +00:00
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
div {
2022-01-27 21:37:09 +00:00
"This should show an image:"
2022-12-31 07:24:18 +00:00
img { src: "examples/assets/logo.png" }
img { src: "/Users/jonkelley/Desktop/blitz.png" }
2022-01-27 21:36:17 +00:00
}
})
}