Skip to content

Heart

The heart icon represents affection, love, or liking something, often used to express a positive sentiment or rating.

Exports at 18 × 24 px

Heart icon from Octicons
Get Pro

Code

Heart in your framework

In any framework. Customize it above, and the code follows.

export const HeartIcon = (props: React.SVGProps<SVGSVGElement>) => (
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="24" viewBox="0 0 12 16" {...props}>
    <path fillRule="evenodd" d="M9 2c-.97 0-1.69.42-2.2 1c-.51.58-.78.92-.8 1c-.02-.08-.28-.42-.8-1c-.52-.58-1.17-1-2.2-1c-1.632.086-2.954 1.333-3 3c0 .52.09 1.52.67 2.67C1.25 8.82 3.01 10.61 6 13c2.98-2.39 4.77-4.17 5.34-5.33C11.91 6.51 12 5.5 12 5c-.047-1.69-1.342-2.913-3-3z" fill="currentColor"/>
  </svg>
);

Octicons

Icons that share its tags, in the same style.

  • Heart  16 icon from Octicons
  • Thumbsup  24 icon from Octicons
  • Heart  24 icon from Octicons
  • Feed Heart  16 icon from Octicons
  • Thumbsdown icon from Octicons
  • Thumbsdown  16 icon from Octicons
  • Thumbsdown  24 icon from Octicons
  • Thumbsup icon from Octicons
  • Thumbsup  16 icon from Octicons
  • Feed Star  16 icon from Octicons
  • Discussion Closed  16 icon from Octicons
  • Discussion Closed  24 icon from Octicons
  • Discussion Duplicate  16 icon from Octicons
  • Discussion Duplicate  24 icon from Octicons
  • Discussion Outdated  16 icon from Octicons
  • Discussion Outdated  24 icon from Octicons
  • Dot  16 icon from Octicons
  • Dot  24 icon from Octicons
  • Feed Discussion  16 icon from Octicons
  • Smiley Neutral  24 icon from Octicons
  • Accessibility  16 icon from Octicons
  • Accessibility  24 icon from Octicons
  • Accessibility Inset  16 icon from Octicons
  • Accessibility Inset  24 icon from Octicons

Skip the copy and paste. With Pro, your AI agent finds and installs any Octicons icon from a prompt.

Get Pro

Pricing

Octicons MCP, with Pro

Ask for Heart or any of 901 Octicons icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What the Heart icon means and where it's used, then how to install, style, label and license it.

4.9 out of 5 from 150+ developers

Install Heart from a prompt

MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.

Get Pro