Chip Group
A ChipGroup is used to hold multiple Chips. By default, the chips are reflowed across multiple lines. Set the app:singleLine
attribute to constrain the chips to a single horizontal line. If you do so, you'll usually want to wrap this ChipGroup in a .
ChipGroup also supports a multiple-exclusion scope for a set of chips. When you set the
app:singleSelection
attribute, checking one chip that belongs to a chip group unchecks any previously checked chip within the same group. The behavior mirrors that of .
When a chip is added to a chip group, its checked state will be preserved. If the chip group is in the single selection mode and there is an existing checked chip when another checked chip is added, the existing checked chip will be unchecked to maintain the single selection rule.
For more information, see the component developer guidance and design guidelines.