InputChipDefaults

Contains the baseline values used by an InputChip.

Properties

Link copied to clipboard
val AvatarSize: Dp

The size of an input chip avatar.

Link copied to clipboard
val Height: Dp

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

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

Default shape of an input chip.

Functions

Link copied to clipboard
@Composable
fun inputChipBorder(enabled: Boolean, selected: Boolean, borderColor: Color = InputChipTokens.UnselectedOutlineColor.value, selectedBorderColor: Color = Color.Transparent, disabledBorderColor: Color = InputChipTokens.DisabledUnselectedOutlineColor.value.copy( alpha = InputChipTokens.DisabledUnselectedOutlineOpacity ), disabledSelectedBorderColor: Color = Color.Transparent, borderWidth: Dp = InputChipTokens.UnselectedOutlineWidth, selectedBorderWidth: Dp = InputChipTokens.SelectedOutlineWidth): BorderStroke

Creates a BorderStroke that represents the default border used in an InputChip.

Link copied to clipboard
@Composable
fun inputChipColors(containerColor: Color = Color.Unspecified, labelColor: Color = Color.Unspecified, leadingIconColor: Color = Color.Unspecified, trailingIconColor: Color = Color.Unspecified, disabledContainerColor: Color = Color.Unspecified, disabledLabelColor: Color = Color.Unspecified, disabledLeadingIconColor: Color = Color.Unspecified, disabledTrailingIconColor: Color = Color.Unspecified, selectedContainerColor: Color = Color.Unspecified, disabledSelectedContainerColor: Color = Color.Unspecified, selectedLabelColor: Color = Color.Unspecified, selectedLeadingIconColor: Color = Color.Unspecified, selectedTrailingIconColor: Color = Color.Unspecified): SelectableChipColors

Creates a SelectableChipColors that represents the default container, label, and icon colors used in an InputChip.

Link copied to clipboard
@Composable
fun inputChipElevation(elevation: Dp = InputChipTokens.ContainerElevation, pressedElevation: Dp = elevation, focusedElevation: Dp = elevation, hoveredElevation: Dp = elevation, draggedElevation: Dp = InputChipTokens.DraggedContainerElevation, disabledElevation: Dp = elevation): SelectableChipElevation

Creates a SelectableChipElevation that will animate between the provided values according to the Material specification for an InputChip.