A search field in a pill with the icon before it (usually Icon::Search) and on_submit for Enter.
The app keeps the text: on_input is sent with the whole new text on every edit, on_submit on Enter.
Signature
pub fn search_bar<'a, M: Clone + 'a>( icon: Icon, value: &'a str, on_input: fn(&str) -> M, on_submit: M, ) -> impl View<M> + 'aExample
use fusuma::{Icon, search_bar};
let query = "jazz";
let view = search_bar(Icon::Search, query, |_| 0, 1);
let built = fusuma::doc::built::<i32, _>(&view);
assert!(built.nodes() >= 2);