- Chips should appear dynamically as a group of multiple interactive elements.
Chip
A chip is a compact component used to represent information or selected choices.
Overview
The purpose of chips is to provide a visual representation of a specific entity or attribute, such as a selected option or a labelled category. Chips can also be interactive, allowing users to remove or modify the selected choices. In the system, chips are categorised into three types: Selection, Filter, and Action, each serving a distinct purpose.
Chips are commonly used in various contexts, including filtering options, search results or any situation where concise and visually distinct information needs to be displayed.
Dos and Don’ts
- Don’t use when an interaction is not required, use a tag if needed.
Anatomy
- Leading icon (optional): Visually supports the label.
- String: Text label informing the user of the option/selection.
- Close (optional): Allows the Chip to be dismissible, but the application should provide a way for them to easily add it back.
- Tick icon (optional): A tick icon indicates the chip is selected.
- Trailing action (optional): A trailing icon indicates further interactions.
Types of chip
Selection chip
Selection chips represent choices or inputs made by the user. They can be used for single or multiple selection among predefined options, or to display context-based suggestions and recommendations.
Filter chip
Filter chips allow users to refine or narrow down content. They are commonly used on search or results pages and can also open additional controls or menus for more advanced filtering.
Action chip
Action chips behave as interactive elements that trigger navigation or perform an action. They can act as links or anchors leading to another page or view.
- Present action chips in a group that offer relevant contextual options.
- Don’t use chips for CTAs, use buttons instead.
- Don’t use only one single chip.
Variants
Default
Outline
Translucent
Ghost
Modifiers
Leading icon
Leading icon provides context and visually supports the label. It is available for all variants.
Trailing icon
A trailing icon can be applied to indicate further interaction, such as opening up a popover or bottom sheet. Only available in Filter chip.
Tick icon
Tick icon can be added for clarity and decision support when using chips to filter or multi-select to the selected state. Only available in selected Selection and Filter chips.
Close icon
Close icon can be added to the selected state to allow users to remove the selection. Clicking a chip with a close icon will dismiss the chip. Only available in selected Selection chip.
Size
Chips have a minimum width of 48px.
Content
String
- Keep the strings short so they are easy to read and scan.
- Use sentence case.
Overrides
Icon
- Trailing icon: In Filter chips, the trailing icon can only be replaced with icons from the Chevron section.
Alignment
- Overall content: By default, the chip container is set to Hug the content. If a chip needs to fit within a specific layout or grid, the overall content can be aligned to either centre or left.
- Trailing content: When a chip has a trailing icon, content can be set to Fill to expand and match the container width, allowing the trailing icon to align with the right edge.
Layout
If there is a Chip grouping, by default are laid out horizontally and stack if required. A spacing of 8px is used horizontally, and 12px for vertical stacking.
Interactions
Close
The whole chip is interactive, except when the close icon appears, in which case only the close icon is clickable to perform the action.
States
The chip has two states:
Interactive states
Outlines the atomic level interactive elements for the component.
Examples
Outlines the atomic level interactive elements for the component.
LTR examples
Here are some examples of chips in a left-to-right context:
RTL examples
Here are some examples of chips in a right-to-left context:
Resources
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |