Skip to content
Cuelark UI

Hover the icon or press Play. Suggested motion: beat. Pick another to preview it and update the animated code:

VS Code Icons · VscHeart

Heart icon

A free heart icon from VS Code Icons, ready for React. Use it static or animated: both versions are below, copy-paste or one shadcn command away. Sized in em and colored by currentColor.

License
CC BY 4.0 license
Project
github.com
Install with shadcn
npx shadcn@latest add https://ui.cuelark.com/r/icons/vscode-codicons/heart.json
components/icons/vscode-codicons-heart.tsx
import * as React from "react";

/**
 * Heart from VS Code Icons (https://github.com/microsoft/vscode-codicons), CC BY 4.0.
 * Via Cuelark UI: ui.cuelark.com/icons/vscode-codicons/heart. Sized in em, colored by currentColor.
 */
export function VscHeartIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      aria-hidden="true"
      viewBox="0 0 16 16"
      stroke="currentColor"
      fill="currentColor"
      strokeWidth="0"
      width="1em"
      height="1em"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M8.02199 14.072C7.89399 14.072 7.76599 14.023 7.66799 13.926L2.10399 8.36098C1.53799 7.79698 0.997986 6.89098 0.997986 5.69898C0.997986 3.94498 2.32599 2.00098 4.72799 2.00098C5.70299 2.00098 6.67899 2.35798 7.39299 3.07098L7.99499 3.67198L8.58699 3.07698C9.30499 2.35998 10.266 2.00298 11.229 2.00298C14.204 2.00298 14.998 4.68498 14.998 5.75298C14.998 6.70998 14.636 7.66598 13.912 8.39398L8.37599 13.927C8.27799 14.025 8.14999 14.073 8.02199 14.073V14.072ZM4.72799 2.96498C3.21699 2.96498 1.99799 4.18398 1.99799 5.69598C1.99799 6.57198 2.39499 7.23698 2.81099 7.65298L8.02199 12.866L13.204 7.68698C13.734 7.15398 13.998 6.45398 13.998 5.75298C13.998 4.27398 12.819 2.99298 11.229 2.99298C10.525 2.99298 9.82299 3.25598 9.29499 3.78398L8.35099 4.73298C8.25699 4.82698 8.12999 4.87998 7.99699 4.87998C7.86399 4.87998 7.73699 4.82698 7.64299 4.73398L6.68699 3.77898C6.16299 3.25498 5.46699 2.96598 4.72899 2.96598L4.72799 2.96498Z"
      />
    </svg>
  );
}
With react-icons
import { VscHeart } from "react-icons/vsc";

export function Example() {
  return <VscHeart className="size-5" />;
}
heart.svg
<svg
  viewBox="0 0 16 16"
  stroke="currentColor"
  fill="currentColor"
  stroke-width="0"
  width="1em"
  height="1em"
  xmlns="http://www.w3.org/2000/svg"
>
  <path
    d="M8.02199 14.072C7.89399 14.072 7.76599 14.023 7.66799 13.926L2.10399 8.36098C1.53799 7.79698 0.997986 6.89098 0.997986 5.69898C0.997986 3.94498 2.32599 2.00098 4.72799 2.00098C5.70299 2.00098 6.67899 2.35798 7.39299 3.07098L7.99499 3.67198L8.58699 3.07698C9.30499 2.35998 10.266 2.00298 11.229 2.00298C14.204 2.00298 14.998 4.68498 14.998 5.75298C14.998 6.70998 14.636 7.66598 13.912 8.39398L8.37599 13.927C8.27799 14.025 8.14999 14.073 8.02199 14.073V14.072ZM4.72799 2.96498C3.21699 2.96498 1.99799 4.18398 1.99799 5.69598C1.99799 6.57198 2.39499 7.23698 2.81099 7.65298L8.02199 12.866L13.204 7.68698C13.734 7.15398 13.998 6.45398 13.998 5.75298C13.998 4.27398 12.819 2.99298 11.229 2.99298C10.525 2.99298 9.82299 3.25598 9.29499 3.78398L8.35099 4.73298C8.25699 4.82698 8.12999 4.87998 7.99699 4.87998C7.86399 4.87998 7.73699 4.82698 7.64299 4.73398L6.68699 3.77898C6.16299 3.25498 5.46699 2.96598 4.72899 2.96598L4.72799 2.96498Z"
  />
</svg>
Attribution
"Heart" icon from VS Code Icons (https://github.com/microsoft/vscode-codicons), licensed under CC BY 4.0 license.

Related icons: like, love, favorite, favourite

Heart icon in other sets