CompactChip
fun CompactChip(label: String, onClick: () -> Unit, modifier: Modifier = Modifier, icon: Paintable? = null, iconRtlMode: IconRtlMode = IconRtlMode.Default, colors: ChipColors = ChipDefaults.primaryChipColors(), enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, border: ChipBorder = ChipDefaults.chipBorder())
fun CompactChip(@StringRes labelId: Int, onClick: () -> Unit, modifier: Modifier = Modifier, icon: Paintable? = null, iconRtlMode: IconRtlMode = IconRtlMode.Default, colors: ChipColors = ChipDefaults.primaryChipColors(), enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, border: ChipBorder = ChipDefaults.chipBorder())
This component is an alternative to CompactChip, providing the following:
a convenient way of providing a string resource label;
a convenient way of providing an icon and a placeholder;
fun CompactChip(icon: Paintable, contentDescription: String, onClick: () -> Unit, modifier: Modifier = Modifier, iconRtlMode: IconRtlMode = IconRtlMode.Default, colors: ChipColors = ChipDefaults.primaryChipColors(), enabled: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, border: ChipBorder = ChipDefaults.chipBorder())
This component is an alternative to CompactChip, providing the following:
a convenient way of providing an icon and a placeholder;