Mikro-Icon-Quadrat
Mikro-Icon-Quadrat: CSS-Button. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
CSS
.btn-197 {
width: 22px;
height: 22px;
display: inline-grid;
place-items: center;
color: #6b7280;
background: transparent;
border: 0;
border-radius: 5px;
cursor: pointer;
transition: background .12s,color .12s
}
.btn-197:hover {
background: #f3f4f6;
color: #111827
}
.btn-197:focus-visible {
outline: 2px solid #111827;
outline-offset: 1px
}
.btn-197:active {
background: #e5e7eb
}
HTML
<button class="btn-197" aria-label="Close"><svg width="10" height="10" viewBox="0 0 10 10" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"><path d="M1 1l8 8M9 1l-8 8"/></svg></button>Prompt
Ein 22px Ghost-Icon-Button mit einem 10px Inline-x-Icon in Grau #6b7280, 5px Radius, ohne Hintergrund oder Rahmen. Hover tönt #f3f4f6 mit dunklerem Icon; Active #e5e7eb. Focus: 2px dunkle Outline mit 1px Offset. Zum Schließen von Toasts, Tags und Dialogen.