CountrySearchEmptyState

fun CountrySearchEmptyState(query: String, onClearSearch: () -> Unit, modifier: Modifier = Modifier, suggestions: List<Country> = emptyList(), onSuggestionClick: (Country) -> Unit = {}, style: CountryPickerStyle = CountryPickerTheme.style)(source)

Shown when a search matches nothing.

A dead end is the worst outcome of a search, so this offers two ways forward: the countries the query nearly matched ("Did you mean Kenya?", for "Kenia"), each one tap away, and a button that clears the search.

Parameters

suggestions
onSuggestionClick

Invoked with the suggestion the user tapped.