SearchBar

@Preview(name = "Search bar preview", showBackground = true)
fun SearchBar(query: String, search: (query: String) -> Unit? = null)

A search bar for providing the user the option to perform a new search within the SearchableActivity.

Author

Arnau Mora

Since

20210811

Parameters

query

The text that will be inside the text field.

search

This will get called whenever the user performs a new search.