Cog icon
heroicons-outline:cog
The Cog icon (heroicons-outline:cog) is a free SVG icon from the HeroIcons v1 Outline set by Refactoring UI Inc. It is drawn on a 24 × 24 grid. HeroIcons v1 Outline icons 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 v1 Outline
- 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"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37c.996.608 2.296.07 2.572-1.065"/><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/></g></svg>How to use the Cog icon
React
import { Icon } from "@iconify/react";
<Icon icon="heroicons-outline:cog" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="heroicons-outline:cog" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="heroicons-outline:cog" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[heroicons-outline--cog]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/heroicons-outline -->
<div class="i-heroicons-outline:cog"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="heroicons-outline:cog"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/heroicons-outline/cog.svg" alt="Cog icon" width="24" height="24">Cog icon in other icon sets
Cog icon FAQ
Is the Cog icon free for commercial use?
Yes. HeroIcons v1 Outline icons 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-outline: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-outline/cog.svg" alt="Cog icon">, or paste the SVG code inline to style it with CSS.