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