Heart 24 icon
octicon:heart-24
The Heart 24 icon (octicon:heart-24) is a free SVG icon from the Octicons set by GitHub. It is drawn on a 24 × 24 grid. Octicons 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="m12 20.703l.343.667a.75.75 0 0 1-.686 0l-.003-.002l-.007-.003l-.025-.013a31 31 0 0 1-5.233-3.576C3.8 15.573 1 12.332 1 8.514v-.001C1 5.053 3.829 2.5 6.736 2.5C9.03 2.5 10.881 3.726 12 5.605C13.12 3.726 14.97 2.5 17.264 2.5C20.17 2.5 23 5.052 23 8.514c0 3.818-2.801 7.06-5.389 9.262a31 31 0 0 1-5.233 3.576l-.025.013l-.007.003l-.002.001ZM6.736 4C4.657 4 2.5 5.88 2.5 8.514c0 3.107 2.324 5.96 4.861 8.12a29.7 29.7 0 0 0 4.566 3.175l.073.041l.073-.04c.271-.153.661-.38 1.13-.674c.94-.588 2.19-1.441 3.436-2.502c2.537-2.16 4.861-5.013 4.861-8.12C21.5 5.88 19.343 4 17.264 4c-2.106 0-3.801 1.389-4.553 3.643a.751.751 0 0 1-1.422 0C10.537 5.389 8.841 4 6.736 4"/></svg>How to use the Heart 24 icon
React
import { Icon } from "@iconify/react";
<Icon icon="octicon:heart-24" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="octicon:heart-24" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="octicon:heart-24" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[octicon--heart-24]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/octicon -->
<div class="i-octicon:heart-24"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="octicon:heart-24"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/octicon/heart-24.svg" alt="Heart 24 icon" width="24" height="24">Related icons in Octicons
Heart 24 icon in other icon sets
Heart 24 icon FAQ
Is the Heart 24 icon free for commercial use?
Yes. Octicons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Heart 24 icon in React?
Install @iconify/react and render <Icon icon="octicon:heart-24" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Heart 24 icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/octicon/heart-24.svg" alt="Heart 24 icon">, or paste the SVG code inline to style it with CSS.