# Chip

A compact, interactive control for suggesting, selecting, or representing an entered value.

Tabs: [Guidelines](/components/web/chip/chip.guidelines.md) · [Code](/components/web/chip/chip.code.md)

View more in [storybook](https://telescope.pleo.io/storybook/?path=/story/chip--all-variants)

```tsx
<ChipGroup>
    <Chip variant="suggestion">Suggestion</Chip>
    <Chip variant="selection">Selection</Chip>
    <Chip variant="input">Input chip</Chip>
    <Chip variant="filter">Filter</Chip>
    <Chip variant="assist" IconLeft={Calendar}>
        Assist
    </Chip>
</ChipGroup>
```

## When to use

Use a chip for a compact, interactive action or value. Pick the variant that matches the interaction described below. To display a static, non-interactive label, use [Tag](https://telescope.pleo.io/components/web/tag/tag.guidelines) instead.

***

## Variants

### Suggestion

Use `suggestion` to offer a quick, optional action, such as prefilling a value.

### Selection

Use `selection` when one or more options can be toggled on or off, for example in a filter bar.

### Input

Use `input` to represent a value that has already been entered or selected and can be removed. Optionally include an avatar or icon.

### Filter

Use `filter` to filter a list or set of content shown elsewhere on the page. A chevron indicates that it opens a menu. A filter with a count shows a check to indicate that it has been applied.

### Assist

Use `assist` for a contextual, system-suggested action that appears dynamically in response to content.

***

## Avatar

Include an avatar to represent a person, e.g. an input chip labelled "Anna Nowak". Size the avatar to 24px to match the chip's proportions. The chip reduces its left padding when an avatar is present.

***

## Icons

Use a left icon to add context before the label, e.g. a calendar on a "Due date" suggestion chip.

***

## Active state

An active chip is highlighted as selected. Active `input` and `suggestion` chips also show a close icon to indicate that the value can be removed. The application handles selection and removal.

***

## Grouping chips

Group related chips with `ChipGroup`, e.g. "Invoice date", "+ 7 days", "+ 14 days" and "Custom range". The group spaces chips evenly and wraps onto new lines as needed.

***

## Best practices

### Labels

- **Do:** use short, single-line labels, e.g. "This quarter".
- **Don't:** use long labels, e.g. "Everything from the start of this quarter until today".

### Avatar size

- **Do:** size the avatar to 24px to match the chip's proportions.
- **Don't:** use an avatar sized for another context, e.g. 48px, which won't fit the chip correctly.

[View in Figma](https://www.figma.com/design/XrMR1KTDyuhoAAQM6To84r/Re-brand-%F0%9F%94%AD-Web-Components---Telescope?node-id=47923-74119)[View on Github](https://github.com/pleo-io/web/tree/main/published-packages/telescope-components/src/components/chip)[Open in Storybook](https://telescope.pleo.io/storybook/?path=/story/chip--all-variants)[View metrics](https://telescope-observatory.dev.pleo.io/)
