ChipColors
-
Cmn
@ExperimentalMaterialApi
interface ChipColors
Represents the background and content colors used in a clickable chip in different states.
See ChipDefaults.chipColors for the default colors used in a filled Chip. See ChipDefaults.outlinedChipColors for the default colors used in a outlined Chip,
Summary
Public functions |
||
|---|---|---|
State<Color> |
@ComposableRepresents the background color for this chip, depending on |
Cmn
|
State<Color> |
@ComposableRepresents the content color for this chip, depending on |
Cmn
|
State<Color> |
@ComposableRepresents the leading icon's content color for this chip, depending on |
Cmn
|
Public functions
backgroundColor
@Composable
fun backgroundColor(enabled: Boolean): State<Color>
Represents the background color for this chip, depending on enabled.
| 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, see leadingIconContentColor.
| Parameters | |
|---|---|
enabled: Boolean |
whether the chip is enabled |
leadingIconContentColor
@Composable
fun leadingIconContentColor(enabled: Boolean): State<Color>
Represents the leading icon's content color for this chip, depending on enabled.
| Parameters | |
|---|---|
enabled: Boolean |
whether the chip is enabled |