Assist Chip
It's basically a skinny Button.
leading/trailingIconshould set size to*ChipDefaults.IconSize.
Filter Chip
It's basically a Checkbox.
- But unlike Checkbox,
onClickdoes not pass the next state. You must flip thestateyourself. leading/trailingIconshould set size to*ChipDefaults.IconSize.
Input Chip
It's basically a FilterChip but can show an avatar icon on the left.
avatarwill replaceleadingIconif not null.leading/trailingIconshould set size to*ChipDefaults.IconSize.avatarshould set size toInputChipDefaults.AvatarSize. They are bigger (24dp) than chip icons (18dp).- Icons in InputChip are themed differently from other Chips.
Other Chips use
Primarycolor, this Chip usesOnSurfaceVariant. - There is no elevated variant of this Chip. You must set
elevationyourself.
Suggestion Chip
It's basically an AssistChip but without the trailing icon.
iconshould set size to*ChipDefaults.IconSize.