heart from Unicons by Iconscout · Line · Shape · Apache-2.0 Free for personal and commercial use.

Name
heart
Set
Unicons
Style
Line
Category
Shape
Viewbox
24×24
License
Apache 2.0

The same icon in other sets

More shape icons from Unicons

Use the heart icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M20.16 5A6.29 6.29 0 0 0 12 4.36a6.27 6.27 0 0 0-8.16 9.48l6.21 6.22a2.78 2.78 0 0 0 3.9 0l6.21-6.22a6.27 6.27 0 0 0 0-8.84m-1.41 7.46l-6.21 6.21a.76.76 0 0 1-1.08 0l-6.21-6.24a4.29 4.29 0 0 1 0-6a4.27 4.27 0 0 1 6 0a1 1 0 0 0 1.42 0a4.27 4.27 0 0 1 6 0a4.29 4.29 0 0 1 .08 6Z"/></svg>

React

import type { SVGProps } from "react";

export function UilHeart(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M20.16 5A6.29 6.29 0 0 0 12 4.36a6.27 6.27 0 0 0-8.16 9.48l6.21 6.22a2.78 2.78 0 0 0 3.9 0l6.21-6.22a6.27 6.27 0 0 0 0-8.84m-1.41 7.46l-6.21 6.21a.76.76 0 0 1-1.08 0l-6.21-6.24a4.29 4.29 0 0 1 0-6a4.27 4.27 0 0 1 6 0a1 1 0 0 0 1.42 0a4.27 4.27 0 0 1 6 0a4.29 4.29 0 0 1 .08 6Z"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M20.16 5A6.29 6.29 0 0 0 12 4.36a6.27 6.27 0 0 0-8.16 9.48l6.21 6.22a2.78 2.78 0 0 0 3.9 0l6.21-6.22a6.27 6.27 0 0 0 0-8.84m-1.41 7.46l-6.21 6.21a.76.76 0 0 1-1.08 0l-6.21-6.24a4.29 4.29 0 0 1 0-6a4.27 4.27 0 0 1 6 0a1 1 0 0 0 1.42 0a4.27 4.27 0 0 1 6 0a4.29 4.29 0 0 1 .08 6Z"/></svg>
</template>

CSS

.icon-heart {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M20.16%205A6.29%206.29%200%200%200%2012%204.36a6.27%206.27%200%200%200-8.16%209.48l6.21%206.22a2.78%202.78%200%200%200%203.9%200l6.21-6.22a6.27%206.27%200%200%200%200-8.84m-1.41%207.46l-6.21%206.21a.76.76%200%200%201-1.08%200l-6.21-6.24a4.29%204.29%200%200%201%200-6a4.27%204.27%200%200%201%206%200a1%201%200%200%200%201.42%200a4.27%204.27%200%200%201%206%200a4.29%204.29%200%200%201%20.08%206Z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M20.16%205A6.29%206.29%200%200%200%2012%204.36a6.27%206.27%200%200%200-8.16%209.48l6.21%206.22a2.78%202.78%200%200%200%203.9%200l6.21-6.22a6.27%206.27%200%200%200%200-8.84m-1.41%207.46l-6.21%206.21a.76.76%200%200%201-1.08%200l-6.21-6.24a4.29%204.29%200%200%201%200-6a4.27%204.27%200%200%201%206%200a1%201%200%200%200%201.42%200a4.27%204.27%200%200%201%206%200a4.29%204.29%200%200%201%20.08%206Z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/uil/heart.svg?color=%231a73e8&size=48