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

Ready-made values and functions that return it

Used by

Parameters that take a 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.