# Chip con avatar (B 165)

Categoría: Botones  
Etiquetas: chip, pill, close-x, avatar, small  
Página: https://designforai.dev/es/snippet/btn-165

## Prompt

Un chip de persona: píldora gris #f3f4f6 con un círculo índigo #6366f1 de 24px que muestra las iniciales "JD" en blanco 10px bold, luego el nombre en 13px #111827 y después un botón de cierre redondo de 20px con una x. Hover del chip #e5e7eb; el hover del cierre se rellena de #111827 con x blanca, active negro. Focus con outline índigo de 2px en el cierre.

## 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
}
```
