Skip to content

Chip API

API reference docs for the React Chip component. Learn about the props, CSS, and other APIs of this exported module.

Demos

For examples and details on the usage of this React component, visit the component demo pages:

Import

import Chip from '@mui/material/Chip';
// or
import { Chip } from '@mui/material';
Learn about the difference by reading this guide on minimizing bundle size.

Chips represent complex entities in small blocks, such as a contact.

Props

Props of the native component are also available.

avatar

children

classes

clickable

color

component

deleteIcon

disabled

icon

label

onDelete

size

skipFocusWhenDisabled

sx

variant

The ref is forwarded to the root element.

Theme default props

You can use MuiChip to change the default props of this component with the theme.


CSS

The following class names are useful for styling with CSS (the state classes are marked).
To learn more, visit the component customization page.

.MuiChip-root

.MuiChip-sizeSmall

.MuiChip-sizeMedium

.MuiChip-colorError

.MuiChip-colorInfo

.MuiChip-colorPrimary

.MuiChip-colorSecondary

.MuiChip-colorSuccess

.MuiChip-colorWarning

.Mui-disabledSTATE

.MuiChip-clickable

.MuiChip-clickableColorPrimary

.MuiChip-clickableColorSecondary

.MuiChip-deletable

.MuiChip-deletableColorPrimary

.MuiChip-deletableColorSecondary

.MuiChip-outlined

.MuiChip-filled

.MuiChip-outlinedPrimary

.MuiChip-outlinedSecondary

.MuiChip-filledPrimary

.MuiChip-filledSecondary

.MuiChip-avatar

.MuiChip-avatarSmall

.MuiChip-avatarMedium

.MuiChip-avatarColorPrimary

.MuiChip-avatarColorSecondary

.MuiChip-icon

.MuiChip-iconSmall

.MuiChip-iconMedium

.MuiChip-iconColorPrimary

.MuiChip-iconColorSecondary

.MuiChip-label

.MuiChip-labelSmall

.MuiChip-labelMedium

.MuiChip-deleteIcon

.MuiChip-deleteIconSmall

.MuiChip-deleteIconMedium

.MuiChip-deleteIconColorPrimary

.MuiChip-deleteIconColorSecondary

.MuiChip-deleteIconOutlinedColorPrimary

.MuiChip-deleteIconOutlinedColorSecondary

.MuiChip-deleteIconFilledColorPrimary

.MuiChip-deleteIconFilledColorSecondary

.Mui-focusVisibleSTATE


You can override the style of the component using one of these customization options: