SearchBar

@Composable
fun SearchBar(modifier: Modifier = Modifier, searchMode: Boolean = true, showCloseButton: Boolean = false, onSearchModeChange: (Boolean) -> Unit = { }, content: @Composable () -> Unit)

Creates a org.gnome.gtk.SearchBar that shows a search bar typically containing a search entry.

Parameters

modifier

Compose Modifier for layout and styling.

searchMode

Whether the search mode is on and the search bar shown.

showCloseButton

Whether to show the close button in the search bar.

onSearchModeChange

Callback triggered when the search mode changes.

content

The composable content to display.