Getting started
Components
Use a Selectable and Dismissible Form Pill to show an option that a user can select, deselect, or dismiss.
A Form Pill can be placed into a selected state by setting the selected property.
selected
Use an Error Form Pill to highlight an object that the user must be made aware of because it's considered to be in a bad or broken state.
Use a disabled Form Pill to indicate that a particular option cannot be interacted with or can be safely ignored.
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 to truncate the Form Pill text.
A Form Pill can have an optional Avatar. We recommend placing the Avatar ahead of the pill text.
A Form Pill can have an optional Icon. We recommend placing the Icon ahead of the pill text.
Use Form Pills inside of a form or when editing a collection of data.
Don't use Form Pills in non-editable pages to represent a collection of similar objects, outside of a form, or outside of editing scenarios. Use a Display Pill Group instead.
Only pass FormPill as a direct descendent of a FormPillGroup.
Don't pass FormPillGroup any other component type, and do not wrap FormPill in any other component or DOM element.
Help us improve this component by providing feedback, asking questions on Slack, or updating this file on GitHub.