androidx.compose.material3

SuggestionChipDefaults

Object

No hand-written docs yet.

Contains the baseline values used by SuggestionChip.

object SuggestionChipDefaults

Properties

Height

val Height: Dp

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

IconSize

val IconSize: Dp

The size of a suggestion chip icon.

ContentPaddingSince 1.11

val ContentPadding: PaddingValues

The padding around the content of the chip, including the icon and label.

HorizontalSpacingSince 1.11

val HorizontalSpacing: Dp

Default spacing between elements in a suggestion chip.

shape

@Composable val shape: Shape

Default shape of a suggestion chip.

Functions

horizontalArrangementSince 1.11

fun horizontalArrangement(): Arrangement.Horizontal

Returns the default arrangement of the icon and label within a suggestion chip.

fun horizontalArrangement(spacing: Dp): Arrangement.Horizontal

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

suggestionChipColors

@Composable
fun suggestionChipColors(): ChipColors

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

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

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.

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.

elevatedSuggestionChipColors

@Composable
fun elevatedSuggestionChipColors(): ChipColors

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

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

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.

Library docs

Contains the baseline values used by SuggestionChip.