ICONYZ
English
Favorite icon from Unicons Thin Line

Favorite icon

uit:favorite

The Favorite icon (uit:favorite) is a free SVG icon from the Unicons Thin Line set by Iconscout. It is drawn on a 24 × 24 grid. Unicons Thin Line 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 Thin Line
Author
Iconscout
License
Apache-2.0
Size
24 × 24
Category
User Interface
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M21.919 10.127a1 1 0 0 0-.845-1.136l-5.651-.826l-2.526-5.147a1.037 1.037 0 0 0-1.795.001L8.577 8.165l-5.651.826a1 1 0 0 0-.556 1.704l4.093 4.013l-.966 5.664a1.002 1.002 0 0 0 1.453 1.052l5.05-2.67l5.049 2.669a1 1 0 0 0 1.454-1.05l-.966-5.665l4.094-4.014a1 1 0 0 0 .288-.567m-5.269 4.05a.5.5 0 0 0-.143.441l1.01 5.921l-5.284-2.793a.5.5 0 0 0-.466 0L6.483 20.54l1.01-5.922a.5.5 0 0 0-.143-.441L3.07 9.98l5.912-.864a.5.5 0 0 0 .377-.275L12 3.46l2.64 5.382a.5.5 0 0 0 .378.275l5.913.863z"/></svg>

How to use the Favorite icon

React

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

<Icon icon="uit:favorite" width="24" />

Vue

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

<template>
  <Icon icon="uit:favorite" width="24" />
</template>

Svelte

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

<Icon icon="uit:favorite" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="uit:favorite"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/uit/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 Thin Line 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="uit: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/uit/favorite.svg" alt="Favorite icon">, or paste the SVG code inline to style it with CSS.

Browse all Unicons Thin Line icons →