Skip to content
+

Chip

Chips are compact elements that represent an input, attribute, or action.

Chips allow users to enter information, make selections, filter content, or trigger actions.

While included here as a standalone component, the most common use will be in some form of input, so some of the behavior demonstrated here is not shown in context.

Basic chip

The Chip component supports outlined and filled styling.

Chip Filled
Chip Outlined
Press Enter to start editing

Chip actions

You can use the following actions.

  • 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
Press Enter to start editing

Deletable

Deletable
Deletable
Press Enter to start editing

Clickable and deletable

Clickable Deletable
Clickable Deletable
Press Enter to start editing
Press Enter to start editing

Custom delete icon

Custom delete icon
Custom delete icon
Press Enter to start editing

Chip adornments

You can add ornaments to the beginning of the component.

Use the avatar prop to add an avatar or use the icon prop to add an icon.

Avatar chip

M
Avatar
Natacha
Avatar
Press Enter to start editing

Icon chip

With Icon
With Icon
Press Enter to start editing

Color chip

You can use the color prop to define a color from theme palette.

primary
success
primary
success
Press Enter to start editing

Sizes chip

You can use the size prop to define a small Chip.

Small
Small
Press Enter to start editing

Multiline chip

By default, Chips displays labels only in a single line. To have them support multiline content, use the sx prop to add height:auto to the Chip component, and whiteSpace: normal to the label styles.

This is a chip that has multiple lines.
Press Enter to start editing

Chip array

An example of rendering multiple chips from an array of values. Deleting a chip removes it from the array. Note that since no onClick prop is defined, the Chip can be focused, but does not gain depth while clicked or touched.

  • Angular
  • jQuery
  • Polymer
  • React
  • Vue.js

Chip playground

Chip Component
<Chip />

Experimental API

Material 3 Chip

The default Material UI Chip component follows the Material Design 2 specs. To use the Material 3 version, install the experimental @mui/material-next package.

import Chip from '@mui/material-next/Chip';
Basic chip
<Chip />

Playground


To learn more about Material UI's MD3 implementation, visit the Material 3 Components documentation.

Accessibility

If the Chip is deletable or clickable then it is a button in tab order. When the Chip is focused (e.g. when tabbing) releasing (keyup event) Backspace or Delete will call the onDelete handler while releasing Escape will blur the Chip.

API

See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.