Gathering detailed insights and metrics for heroicons
Gathering detailed insights and metrics for heroicons
Gathering detailed insights and metrics for heroicons
Gathering detailed insights and metrics for heroicons
@heroicons/react
<p align="center"> <a href="https://heroicons.com" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tailwindlabs/heroicons/HEAD/.github/logo-dark.svg"> <source media="(pref
@heroicons/vue
<p align="center"> <a href="https://heroicons.com" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tailwindlabs/heroicons/HEAD/.github/logo-dark.svg"> <source media="(pref
@iconify-json/heroicons
HeroIcons icon set in Iconify JSON format
@steeze-ui/heroicons
Icon Sources (based on heroicons 2.0) built for @steeze-ui/icons
A set of free MIT-licensed high-quality SVG icons for UI development.
npm install heroicons
Typescript
Module System
Node Version
NPM Version
97.5
Supply Chain
91.7
Quality
89.8
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
4,638,701
Last Day
2,262
Last Week
36,127
Last Month
162,651
Last Year
2,082,163
MIT License
22,583 Stars
231 Commits
1,294 Forks
161 Watchers
6 Branches
37 Contributors
Updated on Jul 01, 2025
Latest Version
2.2.0
Package Id
heroicons@2.2.0
Unpacked Size
683.85 kB
Size
162.79 kB
File Count
1,291
NPM Version
10.7.0
Node Version
18.20.4
Published on
Nov 18, 2024
Cumulative downloads
Total Downloads
Last Day
-7.2%
2,262
Compared to previous day
Last Week
-6.1%
36,127
Compared to previous week
Last Month
-10%
162,651
Compared to previous month
Last Year
38.1%
2,082,163
Compared to previous year
Beautiful hand-crafted SVG icons, by the makers of Tailwind CSS.
Available as basic SVG icons and via first-party React and Vue libraries.
The quickest way to use these icons is to simply copy the source for the icon you need from heroicons.com and inline it directly into your HTML:
1<svg 2 class="size-6 text-gray-500" 3 fill="none" 4 viewBox="0 0 24 24" 5 stroke="currentColor" 6 stroke-width="2" 7> 8 <path 9 stroke-linecap="round" 10 stroke-linejoin="round" 11 d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" 12 /> 13</svg>
Both icon styles are preconfigured to be stylable by setting the color
CSS property, either manually or using utility classes like text-gray-500
in a framework like Tailwind CSS.
First, install @heroicons/react
from npm:
1npm install @heroicons/react
Now each icon can be imported individually as a React component:
1import { BeakerIcon } from '@heroicons/react/24/solid' 2 3function MyComponent() { 4 return ( 5 <div> 6 <BeakerIcon className="size-6 text-blue-500" /> 7 <p>...</p> 8 </div> 9 ) 10}
The 24x24 outline icons can be imported from @heroicons/react/24/outline
, the 24x24 solid icons can be imported from @heroicons/react/24/solid
, the 20x20 solid icons can be imported from @heroicons/react/20/solid
, and 16x16 solid icons can be imported from @heroicons/react/16/solid
.
Icons use an upper camel case naming convention and are always suffixed with the word Icon
.
Browse the full list of icon names on UNPKG →
First, install @heroicons/vue
from npm:
1npm install @heroicons/vue
Now each icon can be imported individually as a Vue component:
1<template> 2 <div> 3 <BeakerIcon class="size-6 text-blue-500" /> 4 <p>...</p> 5 </div> 6</template> 7 8<script setup> 9import { BeakerIcon } from '@heroicons/vue/24/solid' 10</script>
The 24x24 outline icons can be imported from @heroicons/vue/24/outline
, the 24x24 solid icons can be imported from @heroicons/vue/24/solid
, the 20x20 solid icons can be imported from @heroicons/vue/20/solid
, and the 16x16 solid icons can be imported from @heroicons/vue/16/solid
.
Icons use an upper camel case naming convention and are always suffixed with the word Icon
.
Browse the full list of icon names on UNPKG →
While we absolutely appreciate anyone's willingness to try and improve the project, we're currently only interested in contributions that fix bugs, for example things like incorrect TypeScript types, or fixing an icon that's been exported with a fill instead of a stroke, etc.
We're not accepting contributions for new icons or adding support for other frameworks like Svelte or SolidJS. Instead we encourage you to release your own icons in your own library, and create your own packages for any other frameworks you'd like to see supported.
This library is MIT licensed.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
packaging workflow detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
Found 8/30 approved changesets -- score normalized to 2
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More