Getting started
Components
A label helps explain what a collection of data objects represents. Set a non-visual label on a Display Pill Group using aria-label.
aria-label
A linked Display Pill is a focusable element and a single tab stop to a keyboard user. Once a user focuses on a linked Display Pill, pressing the enter key will open the link.
Use a Basic Display Pill to display read-only text, such as a list of email addresses or keywords.
A Display Pill can link to other pages. This can be useful when the entity the pill represents has its own detail page.
A Display Pill Group wraps a collection of basic and linked Display Pills with a common group component.
Pill text should never wrap to the next line. If the text length is longer than the max width of the pill group's container, consider using Truncate.
A Display Pill can have an optional Avatar. We recommend placing the Avatar ahead of the pill text.
A Display Pill can have an optional Icon. We recommend placing the Icon ahead of the pill text.
Use Display Pills in non-editable situations to represent a collection of similar objects.
Don't use Display Pills inside of a form or when editing a collection of data. Use a Multi-select Combobox or Form Pill Group instead.
Use Display Pills to display a list of objects, usually nouns, such as email addresses or keywords.
Don't use Display Pills to highlight an attribute of an object for quick identification. Consider using a Badge instead.
Only pass DisplayPill as a direct descendent of a DisplayPillGroup.
Don't pass DisplayPillGroup in any other component type, and do not wrap DisplayPill in any other component of the DOM element.