Favorite icon
topcoat:favorite
The Favorite icon (topcoat:favorite) is a free SVG icon from the TopCoat Icons set by TopCoat. It is drawn on a 42 × 42 grid. TopCoat 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
- TopCoat Icons
- Author
- TopCoat
- License
- Apache-2.0
- Size
- 42 × 42
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="42" height="42" viewBox="0 0 42 42"><path fill="currentColor" fill-rule="evenodd" d="M21 1c1.081 0 5.141 12.315 6.201 13.126s13.461 1.053 13.791 2.137c.34 1.087-9.561 8.938-9.961 10.252c-.409 1.307 3.202 13.769 2.331 14.442c-.879.673-11.05-6.79-12.361-6.79S9.52 41.63 8.641 40.957c-.871-.674 2.739-13.136 2.329-14.442c-.399-1.313-10.3-9.165-9.96-10.252c.33-1.084 12.731-1.326 13.791-2.137S19.91 1 21 1"/></svg>How to use the Favorite icon
React
import { Icon } from "@iconify/react";
<Icon icon="topcoat:favorite" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="topcoat:favorite" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="topcoat:favorite" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[topcoat--favorite]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/topcoat -->
<div class="i-topcoat:favorite"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="topcoat:favorite"></iconify-icon>HTML image
<img src="https://icons.sys.karaztherapy.ma/api/public/svg/topcoat/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. TopCoat 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="topcoat: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://icons.sys.karaztherapy.ma/api/public/svg/topcoat/favorite.svg" alt="Favorite icon">, or paste the SVG code inline to style it with CSS.