mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-11 15:07:08 +00:00
19 lines
329 B
Rust
19 lines
329 B
Rust
|
use dioxus::prelude::*;
|
||
|
|
||
|
fn main() {
|
||
|
dioxus::desktop::launch_with_props(app, (), |c| {
|
||
|
c.with_file_drop_handler(|w, e| {
|
||
|
println!("{:?}", e);
|
||
|
false
|
||
|
})
|
||
|
});
|
||
|
}
|
||
|
|
||
|
fn app(cx: Scope) -> Element {
|
||
|
cx.render(rsx!(
|
||
|
div {
|
||
|
h1 { "drag an file here" }
|
||
|
}
|
||
|
))
|
||
|
}
|