# Round Icon Button

> Circular icon-only buttons in solid, soft and outline styles, each with an accessible label.

- Category: [CSS Buttons](https://copy-css.com/category/buttons)
- Tags: icon only, circle, svg, aria-label, toolbar
- Live preview: https://copy-css.com/snippets/round-icon-button
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<button class="btn-icon" aria-label="Add">
  <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>
</button>
<button class="btn-icon btn-icon-soft" aria-label="Search">
  <svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>
</button>
<button class="btn-icon btn-icon-outline" aria-label="Notifications">
  <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"/><path d="M10.3 21a1.94 1.94 0 0 0 3.4 0"/></svg>
</button>
```

## CSS

```css
.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-icon:hover {
  background: #4338ca;
}

.btn-icon:active {
  transform: scale(0.94);
}

.btn-icon-soft {
  background: #eef2ff;
  color: #4338ca;
}

.btn-icon-soft:hover {
  background: #e0e7ff;
}

.btn-icon-outline {
  border-color: #d4d4d8;
  background: #fff;
  color: #3f3f46;
}

.btn-icon-outline:hover {
  background: #f4f4f5;
}

.btn-icon:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 3px;
}
```

## Notes

- This CSS Round Icon Button is 55 lines of pure CSS (0.8 KB) with no JavaScript and no dependencies. It uses transitions, transforms, CSS Grid and keyboard focus styles.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
