SuggestionChipDefaults

Contains the baseline values used by SuggestionChip.

Properties

Link copied to clipboard
val Height: Dp

The height applied for a suggestion chip. Note that you can override it by applying Modifier.height directly on a chip.

Link copied to clipboard
val IconSize: Dp

The size of a suggestion chip icon.

Link copied to clipboard
@get:Composable
val shape: Shape

Default shape of a suggestion chip.

Functions

Link copied to clipboard
@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.

Link copied to clipboard
@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.

Link copied to clipboard
@Composable
fun suggestionChipBorder(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.

@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.

Link copied to clipboard
@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.

Link copied to clipboard
@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.