Intro
Chips are interactive elements that provide users with a set of options, allowing them to make selections.
Chips form cell on compact screen (left) and expanded screen (right)
Usage
Do
- Use chips when you need to help users quickly to choose between at least two clearly distinct choices.
- Use chips to optimize screen space when the text of value is short.
Don't
- Don’t use chips when the number of options is more than eight, use a list picker form cell.
- Don’t use chips when the text of value is very long, even if the number of options is no more than eight. Use a list picker form cell instead.
Anatomy
Chip Form Cell
A. Label
Describes the intent of the chip form cell.
The label may have an asterisk (*) next to it to indicate that the input is required.
B. Chips
Displays a list of chips for users to select.
C. Helper Text
Provides additional information about the form cell.
Chips form cell anatomy
Chip
A. Container
A chip container defines the boundary of each chip. All chip elements are wrapped in a chip container. The width of the container depends on the length of its content. Each container is a touch target.
B. Text Label
A text label describes what each chip stands for. Text labels should be concise.
C. Check Mark
A check mark appears when a filter chip is selected and disappears when it’s deselected.
Chips anatomy
Variations
Single Selection
Single selection chips provide users with a set of mutually exclusive options. The user taps on a chip to activate the option. Tapping a different chip transfers activation to that option. Therefore, only one chip can be selected in a group of single selection chips. Single selection chips can be an alternative for radio buttons.
When selected, a check mark appears in front of the text label and pushes the text to the right. The chip container expands horizontally to accommodate the check mark. The check mark disappears when the chip is deselected. The text label shifts left and the chip container returns to its original size.
Single selection chips
Multiple Selection
Multiple selection chips allow users to select multiple options from a set of values. Each chip toggles between selected and unselected. Multiple selection chips can be an alternative for checkboxes.
When selected, a check mark appears in front of the text label and pushes the text to the right. The chip container expands horizontally to accommodate the check mark. The check mark disappears when the chip is deselected. The text label shifts left and the chip container returns to its original size.
Multiple selection chips
Chip with Leading Icon
Chips with a leading icon
Wrapped Chips
Chip form cell with horizontal scroll (top) and wrapped (bottom)
Behavior and Interaction
Error State
Use a validation message only when necessary: to show an error message or direct feedback of this control. Don’t distract users with unimportant information. For page level feedback, use a snackbar instead.
The validation message should be concise. One line of text is recommended for the validation message.
By default, there is no validation message. When the validation message is triggered, insert the message with padding after the last row of chips before the divider line if used. The content under it will be pushed down.
Chip form cell in error state with error message
Resources
Development: FilterChip, FilterChipFormCell
SAP Fiori for iOS: Filter Form Cell, Segmented Control Form Cell
Material Design: Filter Chip