John KuehJohn Kueh

cog icon

Heroicons · cog · MIT

Download SVG

The Heroicons cog icon depicts a gear or wheel, commonly used to represent settings, configuration, or preferences in a user interface.

Common uses

  • Accessing application settings
  • Opening a configuration modal
  • Navigating to a user profile page

Use it in React

Install
npm i @heroicons/react
Import & render
import { CogIcon } from '@heroicons/react/24/outline';

<CogIcon className="size-6" />

Styles

Heroicons ships this icon in 4 styles — each its own import:

24/outline
<CogIcon className="size-6" />
24/solid
<CogIcon className="size-6" />
20/solid
<CogIcon className="size-6" />
16/solid
<CogIcon className="size-6" />

Details

Library
Heroicons (324 icons)
License
MIT
viewBox
0 0 24 24
Keywords
coggearsettingspreferencesoptions

FAQ

What is the cog icon used for?
It typically signifies settings, configuration, or administrative options within an application.
How do I use the cog icon in React?
You can import it using `import { CogIcon } from '@heroicons/react/24/outline'` and then use it as a React component.
What is the license for the Heroicons cog icon?
The Heroicons cog icon is available under the MIT license.

Related icons

The same idea in other libraries, and near matches in Heroicons.

Looking for something else? Search Heroicons and 4 more libraries by description →

The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →