ICONYZ
English
Compass icon from Codicons

Compass icon

codicon:compass

The Compass icon (codicon:compass) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 24 × 24 grid. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Codicons
Author
Microsoft Corporation
License
CC-BY-4.0
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"><path d="M6.479 5.13c-.867-.448-1.797.483-1.348 1.349l.988 1.908a3.5 3.5 0 0 0 1.493 1.495l1.921 1c.867.451 1.8-.482 1.349-1.349l-1-1.921A3.5 3.5 0 0 0 8.387 6.12zm-.46.889l1.908.989a2.5 2.5 0 0 1 1.068 1.065l1 1.922l-1.922-1a2.5 2.5 0 0 1-1.066-1.068z"/><path d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8m7-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2"/></g></svg>

How to use the Compass icon

React

import { Icon } from "@iconify/react";

<Icon icon="codicon:compass" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="codicon:compass" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="codicon:compass" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--compass]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:compass"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="codicon:compass"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/codicon/compass.svg" alt="Compass icon" width="24" height="24">

Related icons in Codicons

Compass icon in other icon sets

Compass icon FAQ

Is the Compass icon free for commercial use?

Yes. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Compass icon in React?

Install @iconify/react and render <Icon icon="codicon:compass" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Compass icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/compass.svg" alt="Compass icon">, or paste the SVG code inline to style it with CSS.

Browse all Codicons →