# chip

```ts
import { ChipModule } from '@anguless/angulux/chip';
```

## Chip

`agl-chip` — component

Inherits every input, output and slot of `BaseComponent` — see [basecomponent.md](basecomponent.md).

Chip represents people using icons, labels and images.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `label` | `string \| undefined` | _not documented_ | Defines the text to display. |
| `icon` | `string \| undefined` | _not documented_ | Defines the icon to display. |
| `image` | `string \| undefined` | _not documented_ | Defines the image to display. |
| `alt` | `string \| undefined` | _not documented_ | Alt attribute of the image. |
| `styleClass` | `string \| undefined` | _not documented_ | Class of the element. **Deprecated:** since v20.0.0, use `class` instead. |
| `disabled` | `boolean \| undefined` | _not documented_ | When present, it specifies that the element should be disabled. |
| `removable` | `boolean \| undefined` | _not documented_ | Whether to display a remove icon. |
| `removeIcon` | `string \| undefined` | _not documented_ | Icon of the remove element. |
| `chipProps` | `ChipProps \| undefined` | _not documented_ | Used to pass all properties of the chipProps to the Chip component. |

| Output | Type | Description |
| --- | --- | --- |
| `onRemove` | `EventEmitter<MouseEvent>` | Callback to invoke when a chip is removed. |
| `onImageError` | `EventEmitter<Event>` | This event is triggered if an error occurs while loading an image file. |

| Slot | Read as | Description |
| --- | --- | --- |
| `<ng-template #removeicon>` | `removeIconTemplate` | Custom remove icon template. |
