Package-level declarations
Types
Link copied to clipboard
Sealed interface defining allowed radius values for KPSearchBar component.
Link copied to clipboard
The KPSearchBarSize sealed interface defines the possible sizes for the search bar. It includes two predefined sizes: Small and Medium.
Link copied to clipboard
Link copied to clipboard
interface SearchBarSize
Size configuration for a SearchBar.
Link copied to clipboard
interface SearchBarStyle
Interface representing the style configuration for SearchBar.
Functions
Link copied to clipboard
fun KPSearchBar(value: String, style: SearchBarStyle, size: SearchBarSize, onValueChange: (String) -> Unit, onTrailingIconClick: () -> Unit, modifier: Modifier = Modifier, colors: TextFieldColors = style.searchBarColors, placeholder: String? = SEARCH_BAR_PLACEHOLDER, radius: KPSearchBarRadius = KPSearchBarRadius.Small, keyboardOptions: KeyboardOptions = KeyboardOptions(
keyboardType = KeyboardType.Text,
imeAction = ImeAction.Search
), keyboardActions: KeyboardActions = KeyboardActions.Default, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
The KPSearchBar composable function creates a customizable search bar with various parameters.