{
  "id": "round-icon-button",
  "name": "Round Icon Button",
  "category": "buttons",
  "tags": [
    "icon only",
    "circle",
    "svg",
    "aria-label",
    "toolbar"
  ],
  "description": "Circular icon-only buttons in solid, soft and outline styles, each with an accessible label.",
  "url": "https://copy-css.com/snippets/round-icon-button",
  "markdown": "https://copy-css.com/snippets/round-icon-button.md",
  "html": "<button class=\"btn-icon\" aria-label=\"Add\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"/></svg>\n</button>\n<button class=\"btn-icon btn-icon-soft\" aria-label=\"Search\">\n  <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>\n</button>\n<button class=\"btn-icon btn-icon-outline\" aria-label=\"Notifications\">\n  <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>\n</button>",
  "css": ".btn-icon {\n  display: inline-grid;\n  place-items: center;\n  width: 48px;\n  height: 48px;\n  padding: 0;\n  border: 1.5px solid transparent;\n  border-radius: 50%;\n  background: #4f46e5;\n  color: #fff;\n  cursor: pointer;\n  transition: background-color 0.2s ease, transform 0.2s ease;\n}\n\n.btn-icon svg {\n  width: 22px;\n  height: 22px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n\n.btn-icon:hover {\n  background: #4338ca;\n}\n\n.btn-icon:active {\n  transform: scale(0.94);\n}\n\n.btn-icon-soft {\n  background: #eef2ff;\n  color: #4338ca;\n}\n\n.btn-icon-soft:hover {\n  background: #e0e7ff;\n}\n\n.btn-icon-outline {\n  border-color: #d4d4d8;\n  background: #fff;\n  color: #3f3f46;\n}\n\n.btn-icon-outline:hover {\n  background: #f4f4f5;\n}\n\n.btn-icon:focus-visible {\n  outline: 2px solid #4f46e5;\n  outline-offset: 3px;\n}",
  "features": [
    "transitions",
    "transforms",
    "CSS Grid",
    "keyboard focus styles"
  ],
  "customProperties": []
}
