TopSearchBar

fun TopSearchBar(modifier: Modifier = Modifier, items: List<Poi>, placeholder: String? = stringResource(R.string.search), value: String? = "", onTitleChange: (String) -> Unit = {}, onPoiChange: (Poi) -> Unit = {})

A composable that displays a search bar with a dropdown menu

Parameters

items

the list of items to search

placeholder

the placeholder text

value

the value of the search bar

onTitleChange

the callback to be called when the title changes

onPoiChange

the callback to be called when the poi changes