# Chip com avatar (B 165)

Categoria: Botões  
Tags: chip, pill, close-x, avatar, small  
Página: https://designforai.dev/pt/snippet/btn-165

## Prompt

Um chip de pessoa: pílula cinza #f3f4f6 com um círculo índigo #6366f1 de 24px mostrando as iniciais "JD" em 10px branco bold, depois o nome em 13px #111827, depois um botão redondo de fechar de 20px com um x. Hover do chip #e5e7eb; hover do fechar preenche #111827 com x branco, active preto. Focus com outline índigo de 2px no fechar.

## HTML

```html
<span class="btn-165"><i aria-hidden="true">JD</i>Jane Doe<button aria-label="Remove Jane Doe">&times;</button></span>
```

## CSS

```css
.btn-165 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13px/1 system-ui,sans-serif;
  color: #111827;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px 6px 4px 4px;
  transition: background .15s
}
.btn-165:hover {
  background: #e5e7eb
}
.btn-165 i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font: 700 10px/1 system-ui,sans-serif;
  font-style: normal;
  color: #fff;
  background: #6366f1;
  border-radius: 50%
}
.btn-165 button {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font: 700 15px/1 system-ui,sans-serif;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s,color .15s
}
.btn-165 button:hover {
  background: #111827;
  color: #fff
}
.btn-165 button:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 1px
}
.btn-165 button:active {
  background: #000
}
```
