Search Bar
fun SearchBar(text: String = "", placeHolderText: String = provideStringResource("search"), onActiveChange: (Boolean) -> Unit = {}, onSearch: (String) -> Unit = {}, onQueryChange: (String) -> Unit = {}, state: InputShellState = InputShellState.FOCUSED, modifier: Modifier = Modifier, leadingIcon: @Composable () -> Unit? = null, focusRequester: FocusRequester = remember { FocusRequester() })
DHIS2 Search bar.
Parameters
text
: the label to display.
place Holder Text
: the placeholder to display.
on Active Change
: callback to when value is modified.
on Search
: on search callback.
on Query Change
: on query change callback.
state
: input shell state.
modifier
: optional modifier.
leading Icon
: optional leading icon to display.
focus Requester
: optional focus requester.