Skip to main content

SearchBarInputField

Function SearchBarInputField 

Source
pub fn SearchBarInputField(
    placeholder: String,
    query: String,
    on_query_change: Rc<dyn Fn(String)>,
    expanded: bool,
    config: SearchBarInputFieldConfig,
) -> View
Expand description

Build a search bar input field with proper M3 SearchBar styling. Equivalent to Compose Material3’s SearchBarDefaults.InputField. When state is provided, focus gain triggers expand and Escape triggers collapse. Always renders a UiTextField (focusable even in collapsed state, matching CK).