androidx.compose.material3

AssistChipDefaults

Object

No hand-written docs yet.

Contains the baseline values used by AssistChip.

object AssistChipDefaults

Properties

Height

val Height: Dp

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

IconSize

val IconSize: Dp

The size of an assist chip icon.

HorizontalSpacingSince 1.11

val HorizontalSpacing: Dp

The spacing between the icon and label of an assist chip.

ContentPaddingSince 1.11

val ContentPadding: PaddingValues

The padding around the content of the chip, including the leadingIcon, label, and trailingIcon

shape

@Composable val shape: Shape

Default shape of an assist chip.

Functions

horizontalArrangementSince 1.11

fun horizontalArrangement(): Arrangement.Horizontal

Returns the default arrangement of the icon and label within an assist chip.

fun horizontalArrangement(spacing: Dp): Arrangement.Horizontal

Creates an Arrangement.Horizontal that represents the default arrangement of the icon and label within an assist chip.

assistChipColors

@Composable
fun assistChipColors(): ChipColors

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

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

assistChipElevation

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

assistChipBorder

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

elevatedAssistChipColors

@Composable
fun elevatedAssistChipColors(): ChipColors

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

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

elevatedAssistChipElevation

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

Library docs

Contains the baseline values used by AssistChip.