AppSearchBar

fun AppSearchBar(onSearch: (String) -> Unit, onBackClick: () -> Unit, modifier: Modifier = Modifier, placeholder: String = stringResource(Res.string.search_placeholder), content: @Composable ColumnScope.() -> Unit = {})

A simplified search bar component based on Material 3 SearchBar. It manages its own query state internally and provides a single callback for search actions.

Parameters

onSearch

Callback invoked whenever the search text changes or the search action is triggered.

onBackClick

Callback invoked when the back navigation button is clicked.

modifier

The Modifier to be applied to the search bar.

placeholder

The placeholder text displayed when the search field is empty.

content

The content to be displayed below the search input (e.g., search results).