androidx.compose.material3
SearchBarColorsExperimental
Class
No hand-written docs yet.
Represents the colors used by a search bar.
class SearchBarColors(
containerColor: Color,
dividerColor: Color,
inputFieldColors: TextFieldColors,
)
How to get one
Create it
SearchBarColors(containerColor, dividerColor, inputFieldColors)constructor
Ready-made values and functions that return it
Used by
Parameters that take a SearchBarColors.
DockedSearchBar(colors)ExpandedDockedSearchBar(colors)ExpandedDockedSearchBarWithGap(colors)ExpandedFullScreenContainedSearchBar(colors)ExpandedFullScreenSearchBar(colors)SearchBar(colors)SearchBarDefaults.appBarWithSearchColors(searchBarColors)
Properties
containerColor
val containerColor: Color
dividerColor
val dividerColor: Color
inputFieldColors
val inputFieldColors: TextFieldColors
Functions
copySince 1.10
fun copy(
containerColor: Color = this.containerColor,
dividerColor: Color = this.dividerColor,
inputFieldColors: TextFieldColors = this.inputFieldColors,
): SearchBarColors
Returns a copy of this SearchBarColors, optionally overriding some of the values.
Library docs
Represents the colors used by a search bar.
See SearchBarDefaults.colors for the default implementation that follows Material
specifications.