Skip to main content

Chip

shadow

The Chip component is a universal element that is a small visual block containing various other elements such as avatars, text and icons. It offers options to customize colors, states and more.

Basic use

Inserting other elements

It is also possible to display other elements in the chip element, for example avatar, label and icon elements.

Styling

Color variants

Styling with CSS custom properties

When to use

Use wje-chip to improve readability, scannability, and contextual understanding of content.

When not to use

Do not replace structured interactive data with media-only presentation when precision is needed.

Accessibility

Provide alt text, maintain readable contrast, and include text equivalents for icon-only controls.

Best Practices

  • Compress media and use lazy loading in larger collections.
  • Keep information priority consistent across cards/lists.
  • Avoid duplicating the same meaning in icon and text without added value.

Attributes and Properties

removable

DescriptionDetermines if the element has the 'removable' attribute.
Attributeremovable
Typeboolean
Default-

disabled

DescriptionDetermines if the element has the 'disabled' attribute.
Attributedisabled
Typeboolean
Default-

label

DescriptionSets the user-visible or accessible label text.
Attributelabel
Typeany
Default-

Events

NameDescription
wje-chip:removeDispatched when the chip is removed;.

Methods

No public methods available for this component.

CSS Shadow Parts

NameDescription
nativeThe component's native wrapper.

CSS Custom Properties

No CSS custom properties available for this component.

Slots

NameDescription
defaultDefault slot for the main component content.