Chip avatar close
Chip avatar close: a CSS button. Copy the rules, or the prompt that rebuilds it.
JDJane Doe
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
}
HTML
<span class="btn-165"><i aria-hidden="true">JD</i>Jane Doe<button aria-label="Remove Jane Doe">×</button></span>Prompt
A people chip: grey #f3f4f6 pill with a 24px indigo #6366f1 circle showing initials "JD" in 10px white bold, then the name in 13px #111827, then a 20px round close button with an x. Chip hover #e5e7eb; close hover fills #111827 with white x, active black. Focus 2px indigo outline on the close.