wip: pass form data between web and desktop

This commit is contained in:
Jonathan Kelley committed 2022-01-22 14:53:59 -05:00
1 parent 63b06b7977
commit f66d17ca84
6 files changed
+68 -8

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
//! Example: README.md showcase
//!
//! The example from the README.md.
use dioxus::prelude::*;
fn main() {
dioxus::desktop::launch(app);
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
div {
h1 { "Form" }
form {
oninput: move |ev| println!("{:?}", ev),
input { r#type: "text", name: "username" }
input { r#type: "text", name: "full-name" }
input { r#type: "password", name: "password" }
}
}
})
}