InputChip
expect fun InputChip(selected: Boolean, onClick: () -> Unit, label: String, modifier: Modifier = Modifier, enabled: Boolean = true, leadingIcon: @Composable (Modifier) -> Unit? = null, avatar: @Composable (Modifier) -> Unit? = null, showTrailingCloseIconComposeUi: Boolean = true, onRemove: () -> Unit? = null)(source)
Material Design input chip.
Parameters
avatar
In Compose UI, avatar shadows leadingIcon when specified.
Note that the trailing close icon is always shown in JS DOM and always removes the chip when clicked, so you are recommended to wrap this component in an if block and always pass onRemove to remove the chip for consistency.
See also
androidx.compose.material3.InputChip