Skip to main content

docked_search_bar

Function docked_search_bar 

Source
pub fn docked_search_bar() -> DockedSearchBarBuilder
Expand description

Show a docked search bar with a results surface below the input.

§Usage

Use for search experiences embedded within existing layouts.

§Parameters

  • Parameters are the same as search_bar, but docked results render below the field instead of taking over the screen.

§Examples

use tessera_components::search::docked_search_bar;
material_theme()
    .theme(|| MaterialTheme::default())
    .child(|| {
        docked_search_bar().is_active(true).content(|| {});
    });