ICONYZ
English
Heart icon from Phosphor

Heart icon

ph:heart

The Heart icon (ph:heart) is a free SVG icon from the Phosphor set by Phosphor Icons. It is drawn on a 256 × 256 grid. Phosphor icons 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
Phosphor
Author
Phosphor Icons
License
MIT
Size
256 × 256
Tags
wellness, love, healthy, like, favorites, favorited, suits, cards, gambling, casino, gaming, emoji
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><path fill="currentColor" d="M178 40c-20.65 0-38.73 8.88-50 23.89C116.73 48.88 98.65 40 78 40a62.07 62.07 0 0 0-62 62c0 70 103.79 126.66 108.21 129a8 8 0 0 0 7.58 0C136.21 228.66 240 172 240 102a62.07 62.07 0 0 0-62-62m-50 174.8c-18.26-10.64-96-59.11-96-112.8a46.06 46.06 0 0 1 46-46c19.45 0 35.78 10.36 42.6 27a8 8 0 0 0 14.8 0c6.82-16.67 23.15-27 42.6-27a46.06 46.06 0 0 1 46 46c0 53.61-77.76 102.15-96 112.8"/></svg>

How to use the Heart icon

React

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

<Icon icon="ph:heart" width="24" />

Vue

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

<template>
  <Icon icon="ph:heart" width="24" />
</template>

Svelte

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

<Icon icon="ph:heart" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="ph:heart"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/ph/heart.svg" alt="Heart icon" width="24" height="24">

Related icons in Phosphor

Heart icon in other icon sets

Heart icon FAQ

Is the Heart icon free for commercial use?

Yes. Phosphor icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Heart icon in React?

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

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

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

Browse all Phosphor icons →