Chip

Chip represents entities using icons, labels and images.

import { ChipModule } from 'primeng/chip';

A basic chip with a text is created with the label property. In addition when removable is added, a delete icon is displayed to remove a chip, the optional onRemove event is available to get notified when a chip is hidden.

Action
Comedy
Mystery
Thriller

A font icon next to the label can be displayed with the icon property.

Apple
Facebook
Google
Microsoft

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

Avatar image
Amy Elsner
Avatar image
Asiya Javayant
Avatar image
Onyama Limba
Avatar image
Xuxue Feng

Content can easily be customized with the dynamic content instead of using the built-in modes.

PPRIME

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
Theme Designer is the ultimate tool to customize and design your own themes featuring a visual editor, Figma to theme code, cloud storage, and migration assistant.