SuggestionChipDefaults
-
Cmn
object SuggestionChipDefaults
Contains the baseline values used by SuggestionChip.
Summary
Public functions |
||
|---|---|---|
ChipColors |
Creates a |
Cmn
|
ChipColors |
@ComposableCreates a |
Cmn
|
ChipElevation |
@ComposableCreates a |
Cmn
|
ChipBorder |
@ComposableThis function is deprecated. Maintained for binary compatibility. |
Cmn
|
BorderStroke |
@ComposableCreates a |
Cmn
|
ChipColors |
Creates a |
Cmn
|
ChipColors |
@ComposableCreates a |
Cmn
|
ChipElevation |
@ComposableCreates a |
Cmn
|
Public properties |
||
|---|---|---|
Dp |
The height applied for a suggestion chip. |
Cmn
|
Dp |
The size of a suggestion chip icon. |
Cmn
|
Shape |
Default shape of a suggestion chip. |
Cmn
|
Public functions
elevatedSuggestionChipColors
@Composable
fun elevatedSuggestionChipColors(): ChipColors
Creates a ChipColors that represents the default container, label, and icon colors used in an elevated SuggestionChip.
elevatedSuggestionChipColors
@Composable
fun elevatedSuggestionChipColors(
containerColor: Color = Color.Unspecified,
labelColor: Color = Color.Unspecified,
iconContentColor: Color = Color.Unspecified,
disabledContainerColor: Color = Color.Unspecified,
disabledLabelColor: Color = Color.Unspecified,
disabledIconContentColor: Color = Color.Unspecified
): ChipColors
Creates a ChipColors that represents the default container, label, and icon colors used in an elevated SuggestionChip.
| Parameters | |
|---|---|
containerColor: Color = Color.Unspecified |
the container color of this chip when enabled |
labelColor: Color = Color.Unspecified |
the label color of this chip when enabled |
iconContentColor: Color = Color.Unspecified |
the color of this chip's icon when enabled |
disabledContainerColor: Color = Color.Unspecified |
the container color of this chip when not enabled |
disabledLabelColor: Color = Color.Unspecified |
the label color of this chip when not enabled |
disabledIconContentColor: Color = Color.Unspecified |
the color of this chip's icon when not enabled |
elevatedSuggestionChipElevation
@Composable
fun elevatedSuggestionChipElevation(
elevation: Dp = SuggestionChipTokens.ElevatedContainerElevation,
pressedElevation: Dp = SuggestionChipTokens.ElevatedPressedContainerElevation,
focusedElevation: Dp = SuggestionChipTokens.ElevatedFocusContainerElevation,
hoveredElevation: Dp = SuggestionChipTokens.ElevatedHoverContainerElevation,
draggedElevation: Dp = SuggestionChipTokens.DraggedContainerElevation,
disabledElevation: Dp = SuggestionChipTokens.ElevatedDisabledContainerElevation
): ChipElevation
Creates a ChipElevation that will animate between the provided values according to the Material specification for an elevated SuggestionChip.
| Parameters | |
|---|---|
elevation: Dp = SuggestionChipTokens.ElevatedContainerElevation |
the elevation used when the chip is has no other |
pressedElevation: Dp = SuggestionChipTokens.ElevatedPressedContainerElevation |
the elevation used when the chip is pressed |
focusedElevation: Dp = SuggestionChipTokens.ElevatedFocusContainerElevation |
the elevation used when the chip is focused |
hoveredElevation: Dp = SuggestionChipTokens.ElevatedHoverContainerElevation |
the elevation used when the chip is hovered |
draggedElevation: Dp = SuggestionChipTokens.DraggedContainerElevation |
the elevation used when the chip is dragged |
disabledElevation: Dp = SuggestionChipTokens.ElevatedDisabledContainerElevation |
the elevation used when the chip is not enabled |
suggestionChipBorder
@Composable
funsuggestionChipBorder(
borderColor: Color = SuggestionChipTokens.FlatOutlineColor.value,
disabledBorderColor: Color = SuggestionChipTokens.FlatDisabledOutlineColor.value.copy( alpha = SuggestionChipTokens.FlatDisabledOutlineOpacity ),
borderWidth: Dp = SuggestionChipTokens.FlatOutlineWidth
): ChipBorder
Creates a ChipBorder that represents the default border used in a flat SuggestionChip.
| Parameters | |
|---|---|
borderColor: Color = SuggestionChipTokens.FlatOutlineColor.value |
the border color of this chip when enabled |
disabledBorderColor: Color = SuggestionChipTokens.FlatDisabledOutlineColor.value.copy(
alpha = SuggestionChipTokens.FlatDisabledOutlineOpacity
) |
the border color of this chip when not enabled |
borderWidth: Dp = SuggestionChipTokens.FlatOutlineWidth |
the border stroke width of this chip |
suggestionChipBorder
@Composable
fun suggestionChipBorder(
enabled: Boolean,
borderColor: Color = SuggestionChipTokens.FlatOutlineColor.value,
disabledBorderColor: Color = SuggestionChipTokens.FlatDisabledOutlineColor.value.copy( alpha = SuggestionChipTokens.FlatDisabledOutlineOpacity ),
borderWidth: Dp = SuggestionChipTokens.FlatOutlineWidth
): BorderStroke
Creates a BorderStroke that represents the default border used in a flat SuggestionChip.
| Parameters | |
|---|---|
enabled: Boolean |
whether the chip is enabled |
borderColor: Color = SuggestionChipTokens.FlatOutlineColor.value |
the border color of this chip when enabled |
disabledBorderColor: Color = SuggestionChipTokens.FlatDisabledOutlineColor.value.copy(
alpha = SuggestionChipTokens.FlatDisabledOutlineOpacity
) |
the border color of this chip when not enabled |
borderWidth: Dp = SuggestionChipTokens.FlatOutlineWidth |
the border stroke width of this chip |
suggestionChipColors
@Composable
fun suggestionChipColors(): ChipColors
Creates a ChipColors that represents the default container, label, and icon colors used in a flat SuggestionChip.
suggestionChipColors
@Composable
fun suggestionChipColors(
containerColor: Color = Color.Unspecified,
labelColor: Color = Color.Unspecified,
iconContentColor: Color = Color.Unspecified,
disabledContainerColor: Color = Color.Unspecified,
disabledLabelColor: Color = Color.Unspecified,
disabledIconContentColor: Color = Color.Unspecified
): ChipColors
Creates a ChipColors that represents the default container, label, and icon colors used in a flat SuggestionChip.
| Parameters | |
|---|---|
containerColor: Color = Color.Unspecified |
the container color of this chip when enabled |
labelColor: Color = Color.Unspecified |
the label color of this chip when enabled |
iconContentColor: Color = Color.Unspecified |
the color of this chip's icon when enabled |
disabledContainerColor: Color = Color.Unspecified |
the container color of this chip when not enabled |
disabledLabelColor: Color = Color.Unspecified |
the label color of this chip when not enabled |
disabledIconContentColor: Color = Color.Unspecified |
the color of this chip's icon when not enabled |
suggestionChipElevation
@Composable
fun suggestionChipElevation(
elevation: Dp = SuggestionChipTokens.FlatContainerElevation,
pressedElevation: Dp = elevation,
focusedElevation: Dp = elevation,
hoveredElevation: Dp = elevation,
draggedElevation: Dp = SuggestionChipTokens.DraggedContainerElevation,
disabledElevation: Dp = elevation
): ChipElevation
Creates a ChipElevation that will animate between the provided values according to the Material specification for a flat SuggestionChip.
| Parameters | |
|---|---|
elevation: Dp = SuggestionChipTokens.FlatContainerElevation |
the elevation used when the chip is has no other |
pressedElevation: Dp = elevation |
the elevation used when the chip is pressed |
focusedElevation: Dp = elevation |
the elevation used when the chip is focused |
hoveredElevation: Dp = elevation |
the elevation used when the chip is hovered |
draggedElevation: Dp = SuggestionChipTokens.DraggedContainerElevation |
the elevation used when the chip is dragged |
disabledElevation: Dp = elevation |
the elevation used when the chip is not enabled |