New to Kendo UI for jQuery? Download free 30-day trial

Appearance

The ChipList provides predefined appearance options such as different sizes, item size, border radiuses, fill modes and item theme colors.

For a live example, visit the Appearance Demo of the Chip.

Options

The Kendo UI Chip supports the following styling options:

  • size—Configures the overall size of the component.
  • itemSize—Configures the size of the Chip items.
  • themeColor—Configures what color will be applied to the component.
  • fillMode—Configures how the color is applied to the component.
  • rounded—Configures the border radius of the component.

Size

Specifies the gap between the Chips in the ChipList. The structure of the class is k-chip-{size}.

The following values are available for the size option:

  • sm—small size
  • md—medium size
  • lg—large size
  • none—unset

The default size value is medium and it is applied to the rendered div element through the k-chip-list-md class.

<div class="k-chip k-chip-list-md" >
</div>

ItemSize

The itemSize option controls how big or small the rendered chip items looks. The structure of the class is k-chip-{size}.

The following values are available for the size option:

  • sm—small size
  • md—medium size
  • lg—large size
  • none—unset

The default size value is medium and it is applied to the rendered div element through the k-chip-md class.

<div class="k-chip k-chip-md" >
</div>

FillMode

The fillMode specifies the background and border styles of the Chip items in the ChipList. The structure of the class is k-chip-{fillMode}.

The following values are available for the fillMode option:

  • solid
  • outline
  • none

The default fillMode value is solid and it is applied to the rendered div element through the k-chip-solid class.

<div id="chiplist" class="k-chip-list k-chip-list-md">
    <div class="k-chip k-chip-solid" >
    </div>
</div>

ThemeColor

The themeColor option controls the color that will be applied to the rendered Chip in the ChipList. As applying items.themeColor is closely related to the fillMode, the structure of the class name for the themeColor is composite—k-chip-{fillMode}-{themeColor}.

The following values are available for the themeColor option:

  • base
  • info
  • success
  • warning
  • error

The default items.themeColor value is base. A Chip with a default fillMode and themeColor will have a k-chip-solid-base class applied.

<!-- ChipList with Chip with default fillMode and themeColor -->
<div id="chiplist" class="k-chip-list">
    <div class="k-chip k-chip-solid k-chip-solid-base" >
    </div>
</div>

<!-- ChipList with Chip with `flat` fillMode and `warning` themeColor -->
<div id="chiplist" class="k-chip-list">
    <div class="k-chip k-chip-flat k-chip-flat-warning" >
    </div>
</div>

Rounded

The rounded option controls how much border radius is applied to the rendered Chips inside the ChipList. The structure of the class is k-rounded-{size}.

The following values are available for the rounded option:

  • sm—small size
  • md—medium size
  • lg—large size
  • circle—circular form
  • pill—pill form
  • none—unset

The default rounded value is medium and it is applied to the rendered div element through the k-rounded-md class.

<div id="chiplist" class="k-chip-list">
    <div class="k-chip k-rounded-md" >
    </div>
</div>

Rendering

To review the rendering of the component, refer to the HTML specifications in the Kendo UI Themes Monorepo. The tests folder of the repository contains the rendering for all flavors of the components, providing a clear reference for how their elements are structured. The rendering information can help you customize a component's appearance and behavior by applying custom CSS or JavaScript to suit specific design or functional requirements.

See Also

In this article