use crate::components::{Demo, DemoCode}; use leptos::*; use prisms::highlight_str; use thaw::*; #[component] pub fn UploadPage() -> impl IntoView { let message = use_message(); let custom_request = move |file_list: FileList| { message.create( format!("Number of uploaded files: {}", file_list.length()), MessageVariant::Success, Default::default(), ); }; view! {

"Upload"

} "#, "rust" ) > ""

"Drag to upload"

"Click or drag a file to this area to upload" "Click or drag a file to this area to upload" } "#, "rust" ) > ""

"Upload Props"

"Name" "Type" "Default" "Description"
"accept" "MaybeSignal" r#""""# "The accept type of upload."
"multiple" "MaybeSignal" "false" "Allow multiple files to be selected."
"custom_request" "Option>" r#""""# "Customize upload request."
"children" "Children" "Upload's content."

"UploadDragger Props"

"Name" "Type" "Default" "Description"
"children" "Children" "UploadDragger's content."
} }