PillChip
fun PillChip(label: String, isSelected: Boolean, modifier: Modifier = Modifier, onClick: () -> Unit? = null, selectedBackground: Color = MaterialTheme.colorScheme.primary, unselectedBackground: Color = MaterialTheme.colorScheme.primaryContainer, selectedLabel: Color = MaterialTheme.colorScheme.onPrimary, unselectedLabel: Color = MaterialTheme.colorScheme.onPrimaryContainer)
A capsule-shaped chip with a selected and an unselected look, for filter rows and option toggles. With onClick it is a selectable chip with a minimum touch target that reports its selected state; with null onClick it is a static label.
Override the colors in matching pairs (onX on X) to keep the label's contrast.