ICONYZ
English
Eye icon from HeroIcons

Eye icon

heroicons:eye

The Eye icon (heroicons:eye) 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
Download SVG

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="1.5"><path d="M2.036 12.322a1 1 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178c.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178"/><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/></g></svg>

How to use the Eye icon

React

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

<Icon icon="heroicons:eye" width="24" />

Vue

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

<template>
  <Icon icon="heroicons:eye" width="24" />
</template>

Svelte

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

<Icon icon="heroicons:eye" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="heroicons:eye"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/heroicons/eye.svg" alt="Eye icon" width="24" height="24">

Related icons in HeroIcons

Eye icon in other icon sets

Eye icon FAQ

Is the Eye 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 Eye icon in React?

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

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

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

Browse all HeroIcons →