custom_assets.rs 285 B

12345678910111213141516
  1. use dioxus::prelude::*;
  2. fn main() {
  3. dioxus_desktop::launch(app);
  4. }
  5. fn app(cx: Scope) -> Element {
  6. cx.render(rsx! {
  7. div {
  8. p {
  9. "This should show an image:"
  10. }
  11. img { src: "examples/assets/logo.png" }
  12. }
  13. })
  14. }