Chip com fechar suave
Chip com fechar suave: um botão em CSS. Copie as regras, ou o prompt que o reconstrói.
Design
CSS
.btn-161 {
display: inline-flex;
align-items: center;
gap: 6px;
font: 500 13px/1 system-ui,sans-serif;
color: #1e40af;
background: #dbeafe;
border-radius: 999px;
padding: 6px 6px 6px 12px
}
.btn-161 button {
width: 18px;
height: 18px;
display: grid;
place-items: center;
font: 700 14px/1 system-ui,sans-serif;
color: #1e40af;
background: transparent;
border: 0;
border-radius: 50%;
cursor: pointer;
transition: background .15s,color .15s
}
.btn-161 button:hover {
background: #1e40af;
color: #fff
}
.btn-161 button:focus-visible {
outline: 2px solid #1e40af;
outline-offset: 1px
}
.btn-161 button:active {
background: #1e3a8a
}
HTML
<span class="btn-161">Design<button aria-label="Remove Design">×</button></span>Prompt
Um chip de filtro removível: pílula azul clara #dbeafe com label #1e40af 13px medium, padding 6px 12px à esquerda e 6px à direita, seguido de um botão redondo de fechar de 18px mostrando um sinal de multiplicação. O botão de fechar é transparente até o hover, quando preenche #1e40af com um x branco; active #1e3a8a. Focus com outline azul de 2px apenas no x.