colors

@Composable
fun colors(containerColor: Color = SearchBarTokens.ContainerColor.value, dividerColor: Color = SearchViewTokens.DividerColor.value, inputFieldColors: TextFieldColors = inputFieldColors()): SearchBarColors

Creates a SearchBarColors that represents the different colors used in parts of the search bar.

Parameters

containerColor

the container color of the search bar

dividerColor

the color of the divider between the input field and the search results

inputFieldColors

the colors of the input field. This can be accessed using SearchBarColors.inputFieldColors and should be passed to the inputField slot of the search bar.