---
productId: joy-ui
title: React Chip component
components: Chip, ChipDelete
githubLabel: 'scope: chip'
---
# Chip
Chip generates a compact element that can represent an input, attribute, or action.
{{"component": "@mui/docs/ComponentLinkHeader"}}
## Introduction
Chips are most frequently used in two main use cases: as pills of informative content or as filtering options.
{{"demo": "ChipUsage.js", "hideToolbar": true, "bg": "gradient"}}
## Component
After [installation](/joy-ui/getting-started/installation/), you can start building with this component using the following basic elements:
```jsx
import Chip from '@mui/joy/Chip';
export default function MyApp() {
return My chip;
}
```
### Basic usage
Chips comes with medium size, primary color, and solid variant set by default.
{{"demo": "BasicChip.js"}}
### Decorators
Use the `startDecorator` and/or `endDecorator` props to add supporting icons to the chip.
{{"demo": "ChipWithDecorators.js"}}
### Delete button
To add a delete action inside a chip, use the complementary `ChipDelete` component.
The `onDelete` callback is fired on `ChipDelete` either when:
- `Backspace`, `Enter` or `Delete` is pressed.
- The `ChipDelete` is clicked.
```jsx
import ChipDelete from '@mui/joy/ChipDelete';
```
{{"demo": "DeleteButtonChip.js"}}
### As a link
You can also use the chip component as a link by assigning a value of `a` to the `component` prop.
Since links are the most appropriate component for navigating through pages, that's useful when you want the same chip design for a link.
Doing so will automatically change the rendered HTML tag from `