OutlinedChip

fun OutlinedChip(label: String, onClick: () -> Unit, modifier: Modifier = Modifier, iconRtlMode: IconRtlMode = IconRtlMode.Default, secondaryLabel: String? = null, icon: Paintable? = null, largeIcon: Boolean = false, colors: ChipColors = ChipDefaults.outlinedChipColors(), enabled: Boolean = true)
fun OutlinedChip(@StringRes labelId: Int, onClick: () -> Unit, modifier: Modifier = Modifier, iconRtlMode: IconRtlMode = IconRtlMode.Default, @StringRes secondaryLabel: Int? = null, icon: Paintable? = null, largeIcon: Boolean = false, colors: ChipColors = ChipDefaults.outlinedChipColors(), enabled: Boolean = true)

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

  • a convenient way of providing a label and a secondary label;

  • a convenient way of providing an icon and a placeholder, and choosing their size based on the sizes recommended by the Wear guidelines;


fun OutlinedChip(label: String, onClick: () -> Unit, modifier: Modifier = Modifier, secondaryLabel: String? = null, icon: @Composable BoxScope.() -> Unit? = null, largeIcon: Boolean = false, colors: ChipColors = ChipDefaults.outlinedChipColors(), enabled: Boolean = true)

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

  • a convenient way of providing a label and a secondary label;