ICONYZ
English
Favorite icon from Carbon

Favorite icon

carbon:favorite

The Favorite icon (carbon:favorite) is a free SVG icon from the Carbon set by IBM. It is drawn on a 32 × 32 grid. Carbon 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
Carbon
Author
IBM
License
Apache-2.0
Size
32 × 32
Category
Actions
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="currentColor" d="M22.45 6a5.47 5.47 0 0 1 3.91 1.64a5.7 5.7 0 0 1 0 8L16 26.13L5.64 15.64a5.7 5.7 0 0 1 0-8a5.48 5.48 0 0 1 7.82 0l2.54 2.6l2.53-2.58A5.44 5.44 0 0 1 22.45 6m0-2a7.47 7.47 0 0 0-5.34 2.24L16 7.36l-1.11-1.12a7.49 7.49 0 0 0-10.68 0a7.72 7.72 0 0 0 0 10.82L16 29l11.79-11.94a7.72 7.72 0 0 0 0-10.82A7.5 7.5 0 0 0 22.45 4"/></svg>

How to use the Favorite icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

<img src="https://iconyz.com/api/public/svg/carbon/favorite.svg" alt="Favorite icon" width="24" height="24">

Related icons in Carbon

Favorite icon in other icon sets

Favorite icon FAQ

Is the Favorite icon free for commercial use?

Yes. Carbon 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="carbon: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/carbon/favorite.svg" alt="Favorite icon">, or paste the SVG code inline to style it with CSS.

Browse all Carbon icons →