The Heroicons heart icon depicts a stylized heart shape, commonly used to represent likes, favorites, or expressions of love and appreciation in user interfaces.
Common uses
- Like/Unlike button
- Add to favorites
- User profile/status indicator
Use it in React
Install
npm i @heroicons/reactImport & render
import { HeartIcon } from '@heroicons/react/24/outline';
<HeartIcon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<HeartIcon className="size-6" />24/solid
<HeartIcon className="size-6" />20/solid
<HeartIcon className="size-6" />16/solid
<HeartIcon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- heartlikefavoriteloveheart shape
FAQ
- What is the heart icon used for?
- It's typically used for actions like liking content, marking items as favorites, or indicating a positive sentiment.
- How do I use the heart icon in React?
- You can import it directly from the Heroicons library like this: `import { HeartIcon } from '@heroicons/react/24/outline'`.
- What is the license for Heroicons?
- Heroicons are released under the MIT license, allowing for free use in both personal and commercial projects.
Related icons
The same idea in other libraries, and near matches in Heroicons.
Looking for something else? Search Heroicons and 4 more libraries by description →
The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →