# Chip mit Zähler (B 164)

Kategorie: Buttons  
Tags: chip, rounded, close-x, count, small  
Seite: https://designforai.dev/de/snippet/btn-164

## Prompt

Ein oranger Chip mit Zähler-Badge: #ffedd5 Hintergrund, 8px Radius, 12px semibold braunes #7c2d12 Label, eine gefüllte #ea580c Pille mit "12" in Weiß und ein 18px quadratischer Schließen-Button mit x. Der Schließen-Hover füllt #fdba74, Active #fb923c mit weißem x. Focus: 2px orange Outline auf dem Schließen-Button.

## HTML

```html
<span class="btn-164">Bugs<b>12</b><button aria-label="Clear Bugs filter">&times;</button></span>
```

## CSS

```css
.btn-164 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12px/1 system-ui,sans-serif;
  color: #7c2d12;
  background: #ffedd5;
  border-radius: 8px;
  padding: 5px 5px 5px 10px
}
.btn-164 b {
  font-weight: 700;
  color: #fff;
  background: #ea580c;
  border-radius: 6px;
  padding: 3px 6px
}
.btn-164 button {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font: 700 14px/1 system-ui,sans-serif;
  color: #9a3412;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s
}
.btn-164 button:hover {
  background: #fdba74
}
.btn-164 button:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 1px
}
.btn-164 button:active {
  background: #fb923c;
  color: #fff
}
```
