logo

SINGULARITY

DOCS

PurchaseReturn to the Dashboard
Reference

Chip

Chips are small, interactive elements that represent inputs, attributes, or actions.

Chips enable users to input data, select options, filter content, or initiate actions.
Although presented here as a standalone component, Chips are most commonly used within input fields, so some behaviors shown here may not apply in all contexts.

Basic chip

The Chip component supports both outlined and filled styling options.
Chip Filled
Chip Outlined

Chip actions

The following actions can be applied to Chips:
  • Chips with the onClick prop defined change appearance on focus, hover, and click.
  • Chips with the onDelete prop defined will display a delete icon which changes appearance on hover.

Clickable

Clickable
Clickable

Deletable

Deletable
Deletable

Clickable and deletable

Clickable Deletable
Clickable Deletable

Clickable link

Custom delete icon

Custom delete icon
Custom delete icon

Chip adornments

You can add decorative elements to the start of the Chip component.
Use the avatar prop to include an avatar or the icon prop to add an icon.

Avatar chip

M
Avatar
Natacha
Avatar

Icon chip

With Icon
With Icon

Color chip

Apply the color prop to select a color from the theme palette.
primary
success
primary
success

Sizes chip

Use the size prop to create a smaller Chip.
Small
Small

Multiline chip

By default, Chips display labels on a single line. To support multiline content, apply the sx prop to set height:auto on the Chip component and whiteSpace: normal on the label styles.
This is a chip that has multiple lines.

Chip array

This example demonstrates rendering multiple chips from an array of values. Removing a chip deletes it from the array. Without an onClick prop, the Chip can be focused but does not gain depth when clicked or touched.
  • Angular
  • jQuery
  • Polymer
  • React
  • Vue.js

Chip playground

Accessibility

When a Chip is clickable or deletable, it functions as a button in the tab order. When focused (e.g., via tabbing), releasing Backspace or Delete (keyup event) triggers the onDelete handler, while releasing Escape blurs the Chip.