Heart 20 Solid icon
heroicons:heart-20-solid
The Heart 20 Solid icon (heroicons:heart-20-solid) is a free SVG icon from the HeroIcons set by Refactoring UI Inc. It is drawn on a 20 × 20 grid. HeroIcons 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
- HeroIcons
- Author
- Refactoring UI Inc
- License
- MIT
- Size
- 20 × 20
- Tags
- heartsolid
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="currentColor" d="m9.653 16.915l-.005-.003l-.019-.01l-.067-.035l-.243-.135a22 22 0 0 1-3.434-2.412C4.045 12.733 2 10.352 2 7.5a4.5 4.5 0 0 1 8-2.828A4.5 4.5 0 0 1 18 7.5c0 2.852-2.044 5.233-3.885 6.82a22 22 0 0 1-3.744 2.582l-.019.01l-.005.003h-.002a.74.74 0 0 1-.69.001z"/></svg>How to use the Heart 20 Solid icon
React
import { Icon } from "@iconify/react";
<Icon icon="heroicons:heart-20-solid" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="heroicons:heart-20-solid" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="heroicons:heart-20-solid" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[heroicons--heart-20-solid]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/heroicons -->
<div class="i-heroicons:heart-20-solid"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="heroicons:heart-20-solid"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/heroicons/heart-20-solid.svg" alt="Heart 20 Solid icon" width="24" height="24">Related icons in HeroIcons
Heart 20 Solid icon FAQ
Is the Heart 20 Solid icon free for commercial use?
Yes. HeroIcons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Heart 20 Solid icon in React?
Install @iconify/react and render <Icon icon="heroicons:heart-20-solid" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Heart 20 Solid icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/heroicons/heart-20-solid.svg" alt="Heart 20 Solid icon">, or paste the SVG code inline to style it with CSS.