Chips are compact elements that can be a representation of individual interactive items and metadata. They catch users’ attention and allow them to interact directly with them or their parent component, make selections, filter content, or trigger actions; these actions, however, should never be the primary action since that’s what CTA buttons are for.
Chips will most of the time appear dynamically as a group of multiple interactive elements.
Chips can include a leading label for the metadata displayed in the chip. They can also include a Badge to show a count relating to that metadata and a close icon button to remove the chip.
The chip is a compact element based on a 24 px high container with a 1 px border and full height border radius. The border colour must satisfy 3:1 contrast against the background colour (more about this in the accessibility section).
Component elements:
Chip Value The main piece of information that the chip represents.
Chip label (optional) As a lead text, this label can provide context or a category for the value text.
Badge (optional) A count related to the chip data.
Close button (optional) Icon button to remove the chip.
Search & Filter:
Chip labels are useful when the chip values in a certain context belong to different categories. The close button makes removing filters easier and faster.
Apart from the Default, there are two variants for this component that can actually be combined: Semantic and Dense. In most cases, the default would be the preferred option.
Variant | Description |
---|---|
Semantic colour chip | A background colour provides a semantic meaning: Positive, Warning, Negative, Information |
Dense chip | A special kind of chip with less height and padding. |
This chip doesn’t use the default background colour. Instead, it has a semantic colour to reinforce the status or meaning.
There are four semantic colours:
The semantic colours can reinforce the chip's status or meaning in its context. These colours, however, should never be used as a single source of information. For example:
Do not rely on colour alone to convey semantic meaning, as this may not be enough for people with colour blindness. In the example above, the text explicitly states what each group of chips represents.
A special kind of chip with less height and padding.
For special circumstances where height is limited, e.g. table rows.