Generic selectors

Exact matches only

Search in title

Search in content

Post Type Selectors

Chips

Chips are small visual elements commonly used in user interfaces to represent discrete pieces of information.

Chips
  • Overview
  • Specs
  • Guidelines

Component

Chips are small visual elements often used in user interfaces to represent specific information or categories.

They typically appear as rounded rectangles with concise text labels or icons, conveying attributes like content organization or selected options in filters.

Chips streamline interaction by offering a compact, intuitive way to display and manipulate contextual data, enabling users to quickly identify, select, or remove tags as required.

Chips_Anatomy
Chips anatomy

A: Closable Variation

B: Hint Variation

C: Informative Variation

D: Selectable Indicator

1: Adornment

2: Label

3: Chevron

4: Dropdown

Chips_Datagrid
Chips applied in a Data Grid

Used for:

Text fields

When a text field is applied with the Chips variation, chips will appear as soon as the text field has an inserted value;

Numeric fields

In the Primary variation, Chips are used to indicate the currency used for the field (e.g. Euro);

Selectbox

As with the text field, if the selectbox is under the Multi Selection variation, Chips will appear once the values are selected, when they can be removed;

Data Grid

As Chips serve as indicators for filters applied, they are set to be visible when a filter is applied to the Data Grid;

Compactness

Chips offer a compact way to display contextual information without occupying excessive screen space.

Don’t use for:

Visual noise

The excessive use of chips can clutter the interface and create visual noise, especially if too many tags are displayed simultaneously, making it difficult for users to focus on essential information;

Mobile constraints

On small mobile screens, the excessive use of chips can take up too much space and detract from the overall user experience, especially if users need to scroll excessively to view all the tags;

Inconsistent use

Inconsistent use of chips throughout the interface can lead to confusion and incoherence in the user experience, especially if their presence varies across different screens or contexts.

Chips_Overuse
Excessive use of chips in a Data Grid

Demo

Access the Figma file and inspect the element using Dev Mode.

Chips_Demo
Chips in Figma

Last Update

Chips_before
Previous version of the Chips
Chips_Now
Current version of the Chips
  • Updated typography;
  • Updated icon font;
  • Updated overall look and feel;

Related

Selectbox

Select Box

The Select Box component allows users to make selections from a predetermined list of options …

Data Grid

Data Grids are used to efficiently organize information and make it easier for users to consult it …

Variations

Chips_Variations
Chips

Closable

Enabled
.enabled {
  icon: var(--grey-8);
  label: var(--grey-8);
  color: var(--grey-4);
}
Hover
.hover {
  icon: var(--grey-8);
  label: var(--grey-8);
  color: var(--grey-5);
}
Pressed
.pressed {
  icon: var(--grey-8);
  label: var(--grey-8);
  color: var(--grey-4);
  stroke: var(--grey-6);
}

Hint

Enabled
.enabled {
  icon: var(--grey-7);
  label: var(--grey-7);
  color: var(--grey-1);
  stroke: var(--grey-5);
}
Hover
.hover {
  icon: var(--grey-8);
  label: var(--grey-8);
  color: var(--grey-2);
  stroke: var(--grey-5);
}
Pressed
.pressed {
  icon: var(--grey-8);
  label: var(--grey-8);
  color: var(--grey-4);
  stroke: var(--grey-5);
}

Informative

Primary
.primary {
  icon: var(--grey-8);
  label: var(--grey-8);
  color: var(--grey-4);
}
Secondary
.secondary {
  icon: var(--grey-7);
  label: var(--grey-7);
  color: var(--grey-1);
  stroke: var(--grey-5);
}

Selectable

Is Selected = False

Enabled
.enabled {
  icon: var(--grey-7);
  label: var(--grey-7);
  color: var(--grey-1);
  stroke: var(--grey-5);
}
Hover
.hover {
  icon: var(--grey-8);
  label: var(--grey-8);
  color: var(--grey-2);
  stroke: var(--grey-5);
}
Pressed
.pressed {
  icon: var(--grey-8);
  label: var(--grey-8);
  color: var(--grey-4);
  stroke: var(--grey-5);
}
Focus
.pressed {
  icon: var(--grey-8);
  label: var(--grey-8);
  color: var(--grey-4);
  stroke: var(--grey-8);
}

Is Selected = True

Enabled
.enabled {
  icon: var(--theme-100);
  label: var(--theme-100);
  color: var(--theme-20);
}
Hover
.hover {
  icon: var(--theme-highlight);
  label: var(--theme-highlight);
  color: var(--theme-40);
}
Pressed
.pressed {
  icon: var(--theme-100);
  label: var(--theme-100);
  color: var(--theme-40);
  stroke: var(--theme-80);
}
Focus
.focus {
  icon: var(--theme-100);
  label: var(--theme-100);
  color: var(--theme-40);
  stroke: var(--theme-highlight);
}

Size

Extra Small
.extraSmall {
  height: 24px;
  padding: var(--spacing-4, 0);
  gap: var(--spacing-4);
  icon: 16px;
  label: var(--label-small);
}
Small
.small {
  height: 28px;
  padding: var(--spacing-8, 0);
  gap: var(--spacing-8);
  icon: 16px;
  label: var(--label-small);
}
Regular
.regular {
  height: 36px;
  padding: var(--spacing-8, 0);
  gap: var(--spacing-8);
  icon: 20px;
  label: var(--label-regular);
}
Large
.large {
  height:40px;
  padding: var(--spacing-8, 0);
  gap: var(--spacing-8);
  icon: 24px;
  label: var(--label-large);
}

Useful links

guidelines figma accent icon

Consult our Figma file to access our assets and inspect them in dev mode.

polygon-framework

This component is or will be provided by the Polygon framework. See its documentation to learn more.

This element is in line with the guidelines of the CDS (Cegid Design System). Find out more.

Behavior

Variations

Since there are four different variations, each one is used for a specific reason or case of use, as seen in the Overview page, namely:

  • Closable: this variation, as the name refers, can be closed, and is used for filtered content that can easily be reset or cleared;
  • Hint: this variation is more commonly used to suggest an action or interaction;
  • Informative: this variation represents a keyword, information or tag, and is retrieved inside cards, for example;
  • Selectable: this variation can be selected with dropdown options. It’s used to filter or select information, and is retrieved in text fields, for example.
Chips_Datagrid
Chips applied in a Data Grid

Usage

Sizes

We’ve introduced an extra small (24 px) size to provide a more compact option, ideal for dense interfaces. Additionally, all chip sizes have been refined to follow a logical 4 px increment, enhancing alignment within our spacing system.

The updated sizes are now extra small (24 px), small (28 px), regular (36 px), and large (40 px), ensuring better adaptability across different layouts while maintaining visual harmony.

As part of this update, small input fields now use the extra small chip variation, ensuring a more balanced and proportional appearance in the form elements.

Small Chip applied in a Selectbox

Application

The application of chip sizes follows a consistent approach, ensuring alignment with surrounding elements for visual harmony. We apply the chip size that best matches the context in which it is used.

For example, when using status indicators within the Second Line component, we use the extra small chip alongside them to maintain consistency.

Chips applied alongside Status Indicators in Second Line
Chips applied alongside Status Indicators in Second Line

In some cases, chips are used to display both a label and a value, where the label remains in regular weight, and the value is emphasized in bold. This approach is particularly useful in components like Expanders, where it is essential to quickly highlight key information.

For example, a chip inside an Expander might display ‘First Name: John‘, ensuring users can quickly interpret relevant details without expanding the content.

Chip applied inside an expander
Chip applied in an Expander

Labels should be short and concise, no more than two words. If this is not possible, then the text should be cut off and a Tooltip should contain the full text (in the Hover effect).

Use different chip variations in the same component/pattern.


Case Studies

Writing for Everyone

Writing for Everyone: Every Word Counts in Accessibility

Writing for everyone is an essential part of any digital product. It can and does make a big difference to …

Understanding the Disabled State

The disabled state indicates that a UI element is not interactive. When used correctly, it prevents users from making common …

Release v1.3

The latest release of Compose Design focuses on continuous updates to our components and patterns, as well as several improvements …

Outline