Gathering detailed insights and metrics for @heroicons/react
Gathering detailed insights and metrics for @heroicons/react
Gathering detailed insights and metrics for @heroicons/react
Gathering detailed insights and metrics for @heroicons/react
A set of free MIT-licensed high-quality SVG icons for UI development.
npm install @heroicons/react
90.1
Supply Chain
90.2
Quality
96
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
21,710 Stars
228 Commits
1,282 Forks
162 Watching
6 Branches
35 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-11.5%
172,719
Compared to previous day
Last week
2.5%
1,036,911
Compared to previous week
Last month
1.2%
4,317,497
Compared to previous month
Last year
46.4%
48,701,893
Compared to previous year
1
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
GitHub workflow tokens follow principle of least privilege
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
packaging workflow detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
4 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 4
Reason
Found 5/30 approved changesets -- 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 2024-11-18
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