Chip

Chip represents entities using icons, labels and images.

What are you interested in?

You can select multiple answers.

Music
🎬Movies
✈️Travel
🍔Food
Sports
🎮Gaming
📚Reading
Photography
💪Fitness
💻Technology
Art
🌿Nature
🛍️Shopping
👨‍🍳Cooking
🐶Pets
Cars
👕Fashion
🔬Science
PREVIEW

Displays compact information with an optional remove action.

GitHub
basic-demo

A font icon next to the label can be displayed with the icon property. Use removable to add a remove action.

Apple
Facebook
Google
Microsoft
GitHub
icon-demo

The image property is used to display an image like an avatar.

Amy Elsner
Asiya Javayant
Onyama Limba
Xuxue Feng
image-demo

Chip also allows displaying custom content inside itself.

Apple
Facebook
Google
Microsoft
GitHub
template-demo

List of class names used in the styled mode.

NameElement
p-chipContainer element.
p-chip-imageContainer element in image mode.
p-chip-textText of the chip.
pi-chip-remove-iconRemove icon.

Screen Reader

Chip uses the label property as the default aria-label, since any attribute is passed to the root element aria-labelledby or aria-label can be used to override the default behavior. Removable chips have a tabindex and focusable with the tab key.

Keyboard Support

KeyFunction
backspaceHides removable.
enterHides removable.
Theme Designer