Chip

A compact component that displays content in a pill-shaped element. Features customizable appearance with support for icons, avatars, images, and interactive behaviors such as clicking and removing. Ideal for tags, filters, or compact information display.


Extends: fieldComponent


Fields

Name

Code

Data Type

Description

Outline

outline

boolean

When enabled, displays the chip with an outlined style

Dense

dense

boolean

Renders the chip in a more compact form

Color

color

text

Sets the background color of the chip

Size

size

text

Controls the size of the chip

Shape Type

chipShape

text

Sets the shape of the chip (square or round)

Image Link

imageLink

text

URL for an image to display in the chip

Icon Right

iconRight

text

Icon to display on the right side of the chip

Text Color

textColor

text

Color of the text content in the chip

Avatar Value

avatarValue

text

Text or value to display in the avatar section

Avatar Color

avatarColor

text

Background color of the avatar section

Clickable

clickable

boolean

Makes the chip interactive with click events

Removable

removable

boolean

Adds a remove button to the chip

Icon

icon

text

Icon to display on the left side of the chip

Label

label

multi-locale

Display label for the chip

ID

resourceId

text

Unique identifier for the component

Style Classes

styleClasses

text

CSS classes for styling

Width

widthClass

text

Controls component width

Value

value

text

Content to display in the chip

Visible

isVisible

boolean

Controls component visibility

Enabled

enabled

boolean

Controls whether component is enabled

Methods

Name

Description

onRemove

Handles chip removal and triggers remove event

getBoolValForShape

Determines if chip should use specified shape type

Events

Name

Description

onRemove

Triggered when the chip's remove button is clicked