androidx.compose.material3

ElevatedSuggestionChip

Composable function

One of the chip types. It works like AssistChip. Only the parameters that differ are described here.

A SuggestionChip with a fill and a shadow instead of an outline.

An elevated suggestion chip
An elevated suggestion chip
ElevatedSuggestionChip(onClick = {}, label = { Text("Sounds good") })

Parameters

@Composable
fun ElevatedSuggestionChip(
    onClick: () -> Unit,
    label: @Composable () -> Unit,
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    icon: @Composable (() -> Unit)? = null,
    shape: Shape = SuggestionChipDefaults.shape,
    colors: ChipColors = SuggestionChipDefaults.elevatedSuggestionChipColors(),
    elevation: ChipElevation? = SuggestionChipDefaults.elevatedSuggestionChipElevation(),
    border: BorderStroke? = null,
    horizontalArrangement: Arrangement.Horizontal = SuggestionChipDefaults.horizontalArrangement(),
    contentPadding: PaddingValues = SuggestionChipDefaults.ContentPadding,
    interactionSource: MutableInteractionSource? = null,
)

icon: @Composable (() -> Unit)?Optional

Default: null

An icon before the label. Only on SuggestionChip.

Defaults that differ from AssistChip:

Same as in AssistChip: onClick, label, modifier, enabled, shape, colors, elevation, border, horizontalArrangement, contentPadding, interactionSource.

Chip types

See also