Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Heroicons

by Tailwind Labs

MIT-licensed SVG icons from Tailwind Labs (324 per style in heroicons 2.2.0) with React and Vue packages.

Icons Code libraryoutlinefilled

GitHub repoWebsite
An orders screen with a top menu, buttons with 20 px icons and status labels with 16 px icons, next to eight icons shown as outline, solid, mini and micro.
Made by AgentGid with heroicons 2.2.0 (npm). Heroicons is MIT licensed, which allows showing and passing on the icons; the order numbers and labels are made up.

2. Commercial use: LICENSE on GitHub

“Permission is hereby granted, free of charge, to any person obtaining a copy of this software”

MIT allows use in paid products without a fee or visible credit.

LICENSE on GitHub

License checked Nov 9, 2026 against 2 official pages. Tap a verdict to see its source. How we checked Report an error

Heroicons: free interface icons from the Tailwind CSS team

Heroicons is a free set of a few hundred interface icons, like a bell, a cart or a gear, from the team behind Tailwind CSS. Each icon comes in four looks, from a large outline to a tiny filled version for buttons and labels. You copy an icon into a page or add it as a ready piece in a React or Vue app, and you may use it in paid products.

Where you can use it

Icons pasted into a page

Copy an icon from heroicons.com and paste it straight into your page, then set its size and color with your styles. No package is needed.

Menus and screens in a React app

Add each icon as its own piece, such as a beaker or a bell next to a menu item. You pick the look by where you import it from.

Icons in a Vue app

The same icons come as ready pieces for Vue, with the same four looks and the same names.

Small icons in buttons and labels

Small icons in buttons and labels

Use the 20 px set inside buttons and the 16 px set inside small status labels, such as Paid or Shipped. They are drawn for that size, so they stay crisp.

Mockups in Figma

Designers can lay out screens with the same icons in Figma before anyone writes code.

Order lists in an admin panel Idea

Mark each row with a small colored label and icon, such as Paid, Shipped or Payment failed, so the list reads at a glance.

As reported by Tailwind Labs: 316 icons, as the site header puts it.

Heroicons popularity

66 / 100
Gid Score, same scale as developer tools
23,922
GitHub stars
6.5M
npm downloads, last 7 days
+43.3% in 4 weeks
66
AI-agent projects using it, from our repo scan of 4,753
Heroicons: downloads per weeknpm, @heroicons/react 6,745,160
Heroicons: GitHub starstailwindlabs/heroicons 23,922

Downloads from api.npmjs.org, stars from GitHub, checked Nov 26, 2026. How the Gid Score is calculated

How to start

Tell your AI assistant

“Install @heroicons/react 2.2.0 and use outline icons from 24/outline in the menu, 20/solid icons in buttons and 16/solid icons in status labels; give icon-only buttons an aria-label.”

Or install it yourself. Add the React package to your project (for Vue the package is @heroicons/vue).

npm install @heroicons/react
Show code

Import each icon by name from the folder of the look you want (24/outline, 24/solid, 20/solid or 16/solid) and size it with a class.

import { BeakerIcon } from '@heroicons/react/24/solid'

function MyComponent() {
  return (
    <div>
      <BeakerIcon className="size-6 text-blue-500" />
      <p>...</p>
    </div>
  )
}

Mistakes to avoid

import { BellIcon } from '@heroicons/react'
import { BellIcon } from '@heroicons/react/24/outline' (or 24/solid, 20/solid, 16/solid)

The package root only throws an error that asks you to import from a size folder.

import { BellIcon } from '@heroicons/react/outline' (version 1 paths)
import { BellIcon } from '@heroicons/react/24/outline'

Version 2 removed the old outline and solid paths; importing from them throws an error.

import { Bell } from '@heroicons/react/24/outline'
import { BellIcon } from '@heroicons/react/24/outline'

Every component name ends with the word Icon.

Pasting a file from the heroicons package into a page with no size set
Give the svg a width and height (or a size class such as size-6)

The files carry no width or height, so the icon stretches to fill its box; our demo had to add 24, 20 or 16 px to each one.

<button><TrashIcon className="size-5" /></button> with no label
<button aria-label="Delete"><TrashIcon className="size-5" /></button>, or pass title="Delete" to the icon

Every icon is hidden from screen readers by default; the React components accept a title prop.

License

MIT license. Free in personal and paid products, with no visible credit needed. Keep the short copyright and license notice with copies of the files or code you pass on.

Commercial use
Yes

“Permission is hereby granted, free of charge, to any person obtaining a copy of this software” LICENSE on GitHub

Credit
Not needed
Inside your app or game
Can ship inside your app

“Permission is hereby granted, free of charge, to any person obtaining a copy of this software” LICENSE on GitHub

Pass the files on to your users
Allowed

“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” raw.githubusercontent.com

AI training
Not stated
Bots and bulk downloads
Not stated

AllowedWith conditionsNot allowedNot stated or not checked yet

Is Heroicons free for commercial use? The full answer Not legal advice. Check the license page before you ship.

For your agent

License rules tell your agent what it may do with Heroicons. Paste them into your prompt or AGENTS.md.

License rules
- Heroicons (Icons). MIT-licensed SVG icons from Tailwind Labs (324 per style in heroicons 2.2.0) with React and Vue packages. Price: free; commercial use OK; no credit needed. Style: outline, filled.
  Connect: npm @heroicons/react.
  Get files: npm install @heroicons/react or @heroicons/vue, or copy the SVG source from heroicons.com (svg).
  Not allowed: Keep the MIT copyright and permission notice in all copies or substantial portions
  Rule: Keep the MIT copyright and permission notice in copies.
  License: https://github.com/tailwindlabs/heroicons/blob/master/LICENSE (checked 2026-11-09; details: https://agentgid.com/assets/heroicons/)
Can an agent use it by itself?
Yes.

Agent installs a package or loads it from a CDN.

Install
npm install @heroicons/react
How an agent gets files
npm install @heroicons/react or @heroicons/vue, or copy the SVG source from heroicons.com.

Formats: svg

API, key or account
Not needed. Everything runs on your side.
MCP server
None found
Credit line, if you want one
Icons: Heroicons by Tailwind Labs (MIT)
This card for machines

Use it in your stack

ReactStyles: 24/solid, 24/outline, 20/solid, 16/solid import paths.
npm install @heroicons/react

import { BeakerIcon } from '@heroicons/react/24/solid'

function MyComponent() {
  return (
    <div>
      <BeakerIcon className="size-6 text-blue-500" />
      <p>...</p>
    </div>
  )
}

From the official docs: raw.githubusercontent.com/tailwindlabs/heroicons/master/README.md

HTML/CSSInline SVG; the size-6 / text-* classes are Tailwind utilities.
<svg
  class="size-6 text-gray-500"
  fill="none"
  viewBox="0 0 24 24"
  stroke="currentColor"
  stroke-width="2"
>
  <path
    stroke-linecap="round"
    stroke-linejoin="round"
    d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"
  />
</svg>

From the official docs: raw.githubusercontent.com/tailwindlabs/heroicons/master/README.md

Alternatives

Heroicons This page

Free Commercial OK npm

Tabler Icons

Pick Tabler Icons when you need thousands of icons, with outline and filled versions, under MIT as well.

Free Commercial OK npm

Lucide

Pick Lucide for a larger line icon set with official packages for Svelte, Angular and other toolkits, not only React and Vue.

Free Commercial OK npm

Phosphor Icons

Pick Phosphor when you want each icon in six weights instead of four fixed looks.

Free Commercial OK npm

Font Awesome

Icon toolkit with a free set (CC BY 4.0), Pro plans, a GraphQL API and official agent skills.

Free tier Commercial OK API, npm

Simple Icons

3,470 SVG brand icons (simple-icons 16.37.0) with an npm package and a CDN; most are CC0, some carry other licenses listed per icon.

Free With conditions npm

All icons

Questions

Can I use Heroicons in a paid app or a client site?

Yes. The MIT license lets you use, copy, change and sell the software; keep the copyright and license notice with copies.

Which sizes and looks are there?

Four. Outline at 24 by 24, solid at 24 by 24, a solid 20 by 20 set (Mini) and a solid 16 by 16 set (Micro).

How do I change the color?

Set the text color on the icon or its parent; both outline and solid icons follow it.

Is there a Svelte or Solid version?

Not from the makers. They ask people to publish their own packages for other toolkits.

Can I ask for a new icon?

No. The project only takes fixes for bugs, not new icons.