Search Bar
Search requests
This commit is contained in:
2025-05-03 22:21:11 -04:00
parent 3eac4e619e
commit e223612a08
17 changed files with 191 additions and 69 deletions

View File

@@ -1,13 +1,15 @@
use dioxus::prelude::*;
#[component]
pub fn Search() -> Element {
pub fn Search(query: Option<String>, oninput: EventHandler<FormEvent>) -> Element {
rsx! {
div{
class: "searchBar",
input {
type: "search",
placeholder: "Search Files"
placeholder: "Search Files",
value: query.unwrap_or("".into()),
oninput: move |event| oninput.call(event)
}
}
}