Favorite icon
uim:favorite
The Favorite icon (uim:favorite) is a free SVG icon from the Unicons Monochrome set by Iconscout. It is drawn on a 24 × 24 grid. Unicons Monochrome icons are released under the Apache 2.0 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
- Unicons Monochrome
- Author
- Iconscout
- License
- Apache-2.0
- Size
- 24 × 24
- Category
- User Interface
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M17.562 21.56a1 1 0 0 1-.465-.116L12 18.764l-5.097 2.68a1 1 0 0 1-1.45-1.053l.973-5.676l-4.124-4.02a1 1 0 0 1 .554-1.705l5.699-.828l2.549-5.164a1.04 1.04 0 0 1 1.793 0l2.548 5.164l5.699.828a1 1 0 0 1 .554 1.705l-4.124 4.02l.974 5.676a1 1 0 0 1-.985 1.169Z"/></svg>How to use the Favorite icon
React
import { Icon } from "@iconify/react";
<Icon icon="uim:favorite" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="uim:favorite" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="uim:favorite" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[uim--favorite]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/uim -->
<div class="i-uim:favorite"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="uim:favorite"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/uim/favorite.svg" alt="Favorite icon" width="24" height="24">Favorite icon in other icon sets
Favorite icon FAQ
Is the Favorite icon free for commercial use?
Yes. Unicons Monochrome icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.
How do I use the Favorite icon in React?
Install @iconify/react and render <Icon icon="uim:favorite" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Favorite icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/uim/favorite.svg" alt="Favorite icon">, or paste the SVG code inline to style it with CSS.