Cog icon
heroicons:cog
The Cog icon (heroicons:cog) is a free SVG icon from the HeroIcons set by Refactoring UI Inc. It is drawn on a 24 × 24 grid. HeroIcons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- HeroIcons
- Author
- Refactoring UI Inc
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077l1.41-.513m14.095-5.13l1.41-.513M5.106 17.785l1.15-.964m11.49-9.642l1.149-.964M7.501 19.795l.75-1.3m7.5-12.99l.75-1.3m-6.063 16.658l.26-1.477m2.605-14.772l.26-1.477m0 17.726l-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205L12 12m6.894 5.785l-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864l-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"/></svg>How to use the Cog icon
React
import { Icon } from "@iconify/react";
<Icon icon="heroicons:cog" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="heroicons:cog" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="heroicons:cog" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[heroicons--cog]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/heroicons -->
<div class="i-heroicons:cog"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="heroicons:cog"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/heroicons/cog.svg" alt="Cog icon" width="24" height="24">Related icons in HeroIcons
Cog icon in other icon sets
Cog icon FAQ
Is the Cog icon free for commercial use?
Yes. HeroIcons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Cog icon in React?
Install @iconify/react and render <Icon icon="heroicons:cog" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Cog icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/heroicons/cog.svg" alt="Cog icon">, or paste the SVG code inline to style it with CSS.