OutlinedCompactChip

fun OutlinedCompactChip(label: String, onClick: () -> Unit, modifier: Modifier = Modifier, icon: Paintable? = null, iconRtlMode: IconRtlMode = IconRtlMode.Default, colors: ChipColors = ChipDefaults.outlinedChipColors(), enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, border: ChipBorder = ChipDefaults.outlinedChipBorder())
fun OutlinedCompactChip(icon: Paintable, contentDescription: String, onClick: () -> Unit, modifier: Modifier = Modifier, iconRtlMode: IconRtlMode = IconRtlMode.Default, colors: ChipColors = ChipDefaults.outlinedChipColors(), enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, border: ChipBorder = ChipDefaults.outlinedChipBorder())

This component is an alternative to OutlinedCompactChip, providing the following:

  • a convenient way of providing a label;

  • a convenient way of providing an icon and a placeholder;


fun OutlinedCompactChip(@StringRes labelId: Int, onClick: () -> Unit, modifier: Modifier = Modifier, icon: Paintable? = null, iconRtlMode: IconRtlMode = IconRtlMode.Default, colors: ChipColors = ChipDefaults.outlinedChipColors(), enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, border: ChipBorder = ChipDefaults.outlinedChipBorder())

This component is an alternative to OutlinedCompactChip, providing the following:

  • a convenient way of providing a string resource label;

  • a convenient way of providing an icon and a placeholder;