New to Kendo UI for Angular? Start a free 30-day trial

Content Setup

The Chip component allows you to set its textual content and icons according to the specific project requirements.

To configure the Chip content, use the available options for setting its content elements:

Setting the Icons

Depending on the configuration of the project, you can enhance the content of the Chip by displaying any of the following icon types:

As of R2 2023 (v13.0.0) the default icon type in the Kendo UI for Angular components and Kendo UI themes is changed from font to svg. Set the svgIcon property, or Continue Using Font Icons.

Displaying SVG Icons

To display an SVG icon inside the Chip, set the svgIcon property or use the removeSvgIcon to set the Remove icon of the Chip to the necessary SVGIcon. For details, go to the list of SVG icons supported by Kendo UI for Angular.

<kendo-chip [svgIcon]="svgBell" [removeSvgIcon]="svgX"> </kendo-chip>
import { bellIcon, xIcon } from '@progress/kendo-svg-icons';

public svgBell = bellIcon;
public svgX = xIcon;

The following example demonstrates how to set the svgIcon and removeSvgIcon properties of the Chip.

Example
View Source
Change Theme:

Displaying Font Icons

To display a Font icon inside the Chip:

  1. Use the ICON_SETTINGS token of the Icons package and set the icon type to font. For more information, go to the topic about icon settings.
  2. Depending on the font icons library, you can set the:

The following example demonstrates how to set the icon, removeIcon, and iconClass properties of the Chip.

Example
View Source
Change Theme:

Setting the Text

To configure the Chip textual content, use any of the following approaches:

Passing a String

Passing a string to the label field is the basic way to display a chunk of text in the Chip. The text that is passed represents the rendered content of the component.

Example
View Source
Change Theme:

Defining Custom Content

You can also define any custom content as a label between the <kendo-chip> tags.

Example
View Source
Change Theme: