SearchBox
A search field with suggestions.
Example
Show code
use crate::Found;
use zeyn::prelude::*;
pub fn overview(_ctx: &Ctx) -> Node {
SearchBox::of(crate::find_components)
.label("Search components")
.suggestion(|f: &Found| f.name.clone())
.results(crate::catalog_home)
.into()
}