KPSearchBar
The KPSearchBar composable function creates a customizable search bar with various parameters.
Parameters
the input to be shown in the search bar
determines the style of the search bar. It can be either KPSearchBarStyle.Outline or KPSearchBarStyle.Filled
determines the size of the search bar. It can be either KPSearchBarSize.Small or KPSearchBarSize.Medium
the callback that is triggered when the input service updates values
the callback that is triggered when the trailing icon clicked in the search bar. An updated search bar value comes as a parameter of the callback
a Modifier for this search bar
TextFieldColors that will be used to resolve color of the text and content (including placeholder, leading and trailing icons, border) for this search bar in different states. See KPSearchBarStyle
the optional placeholder to be displayed when the search bar is in focus and the input text is empty. Default is "Ürün Ara"
the radius to be applied to the search bar corners. Default is KPSearchBarRadius.Small
software keyboard options that contains configuration
when the input service emits an IME action, the corresponding callback
the MutableInteractionSource representing the stream of interactions for this OutlinedTextField. You can create and pass in your own remembered MutableInteractionSource if you want to observe interactions and customize the appearance / behavior of this KPSearchBar in different interactions.