mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
17 lines
349 B
Rust
17 lines
349 B
Rust
use dioxus::desktop::Config;
|
|
use dioxus::prelude::*;
|
|
|
|
fn main() {
|
|
LaunchBuilder::desktop()
|
|
.with_cfg(Config::new().with_file_drop_handler(|_w, e| {
|
|
println!("{e:?}");
|
|
true
|
|
}))
|
|
.launch(app)
|
|
}
|
|
|
|
fn app() -> Element {
|
|
rsx!(
|
|
div { h1 { "drag a file here and check your console" } }
|
|
)
|
|
}
|