Usage
Chips can be used for various types of entities, including brief information, free form text, or short title. Chips may also contain icons or photos.
Chips exist in an outline variant : just add .chip-outline
class to your chip.
Chips can be deletable. A delete icon can be displayed if a chip is deletable.
Choice chips
Choice chips allow selection of a single chip from a set of options.
Choice chips clearly delineate and display options in a compact area. They are a good alternative to toggle buttons, radio buttons, and single select menus.
This component uses a standard radio input and styles the label. Just add .chip-action.chip-choice
classes to this label.
They also exist in their outline variant.
Filter chips
Filter chips use tags or descriptive words to filter content.
Filter chips clearly delineate and display options in a compact area. They are a good alternative to toggle buttons or checkboxes.
This component uses a standard checkbox input and styles the label. Just add .chip-action.chip-filter
classes to this label.
Choose amenities
They also exist in their outline variant.
Choose amenities
Action chips
Action chips offer actions related to primary content. They should appear dynamically and contextually in a UI.
An alternative to action chips are buttons, which should appear persistently and consistently.
Chips can be interactive. Use <a>
s or <button>
s to create actionable chips with active, focus and hover states by adding .chip-action
.
Or with icons.
And in their outline variant.
Sizing and density
More dense chips are avilable to reflect the Comfortable and Compact ones from Material design guidelines.
Use .chip-sm
for Comfortable chips and .chip-xs
for Compact ones.