ChipColors
interface ChipColors
Represents the background and content colors used in a chip in different states.
See ChipDefaults.primaryChipColors for the default colors used in a primary styled Chip. See ChipDefaults.secondaryChipColors for the default colors used in a secondary styled Chip.
Summary
Public functions |
|
|---|---|
State<Painter> |
@ComposableRepresents the background treatment for this chip, depending on |
State<Color> |
@ComposableRepresents the content color for this chip, depending on |
State<Color> |
@ComposableRepresents the icon color for this chip, depending on |
State<Color> |
@ComposableRepresents the secondary content color for this chip, depending on |
Public functions
background
@Composable
fun background(enabled: Boolean): State<Painter>
Represents the background treatment for this chip, depending on enabled. Backgrounds can be solid, transparent or have a gradient applied.
| Parameters | |
|---|---|
enabled: Boolean |
Whether the chip is enabled |
contentColor
@Composable
fun contentColor(enabled: Boolean): State<Color>
Represents the content color for this chip, depending on enabled.
| Parameters | |
|---|---|
enabled: Boolean |
Whether the chip is enabled |
iconColor
@Composable
fun iconColor(enabled: Boolean): State<Color>
Represents the icon color for this chip, depending on enabled.
| Parameters | |
|---|---|
enabled: Boolean |
Whether the chip is enabled |
secondaryContentColor
@Composable
fun secondaryContentColor(enabled: Boolean): State<Color>
Represents the secondary content color for this chip, depending on enabled.
| Parameters | |
|---|---|
enabled: Boolean |
Whether the chip is enabled |