AssistChipDefaults

Contains the baseline values used by AssistChip.

Properties

Link copied to clipboard
val Height: Dp

The height applied for an assist 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 an assist chip icon.

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

Default shape of an assist chip.

Functions

Link copied to clipboard
@Composable
fun assistChipBorder(borderColor: Color = AssistChipTokens.FlatOutlineColor.value, disabledBorderColor: Color = AssistChipTokens.FlatDisabledOutlineColor.value.copy( alpha = AssistChipTokens.FlatDisabledOutlineOpacity ), borderWidth: Dp = AssistChipTokens.FlatOutlineWidth): ChipBorder
@Composable
fun assistChipBorder(enabled: Boolean, borderColor: Color = AssistChipTokens.FlatOutlineColor.value, disabledBorderColor: Color = AssistChipTokens.FlatDisabledOutlineColor.value.copy( alpha = AssistChipTokens.FlatDisabledOutlineOpacity ), borderWidth: Dp = AssistChipTokens.FlatOutlineWidth): BorderStroke

Creates a ChipBorder that represents the default border used in a flat AssistChip.

Link copied to clipboard
@Composable
fun assistChipColors(): ChipColors
@Composable
fun assistChipColors(containerColor: Color = Color.Unspecified, labelColor: Color = Color.Unspecified, leadingIconContentColor: Color = Color.Unspecified, trailingIconContentColor: Color = Color.Unspecified, disabledContainerColor: Color = Color.Unspecified, disabledLabelColor: Color = Color.Unspecified, disabledLeadingIconContentColor: Color = Color.Unspecified, disabledTrailingIconContentColor: Color = Color.Unspecified): ChipColors

Creates a ChipColors that represents the default container , label, and icon colors used in a flat AssistChip.

Link copied to clipboard
@Composable
fun assistChipElevation(elevation: Dp = AssistChipTokens.FlatContainerElevation, pressedElevation: Dp = elevation, focusedElevation: Dp = elevation, hoveredElevation: Dp = elevation, draggedElevation: Dp = AssistChipTokens.DraggedContainerElevation, disabledElevation: Dp = elevation): ChipElevation

Creates a ChipElevation that will animate between the provided values according to the Material specification for a flat AssistChip.

Link copied to clipboard
@Composable
fun elevatedAssistChipColors(containerColor: Color = Color.Unspecified, labelColor: Color = Color.Unspecified, leadingIconContentColor: Color = Color.Unspecified, trailingIconContentColor: Color = Color.Unspecified, disabledContainerColor: Color = Color.Unspecified, disabledLabelColor: Color = Color.Unspecified, disabledLeadingIconContentColor: Color = Color.Unspecified, disabledTrailingIconContentColor: Color = Color.Unspecified): ChipColors

Creates a ChipColors that represents the default container, label, and icon colors used in an elevated AssistChip.

Link copied to clipboard
@Composable
fun elevatedAssistChipElevation(elevation: Dp = AssistChipTokens.ElevatedContainerElevation, pressedElevation: Dp = AssistChipTokens.ElevatedPressedContainerElevation, focusedElevation: Dp = AssistChipTokens.ElevatedFocusContainerElevation, hoveredElevation: Dp = AssistChipTokens.ElevatedHoverContainerElevation, draggedElevation: Dp = AssistChipTokens.DraggedContainerElevation, disabledElevation: Dp = AssistChipTokens.ElevatedDisabledContainerElevation): ChipElevation

Creates a ChipElevation that will animate between the provided values according to the Material specification for an elevated AssistChip.