npm / heroicons
heroicons
What changed in heroicons 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
5 breaking1 new APIs and options
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initheroicons 26 changes
Breaking changes 5
React imports for Solid icons now use explicit size-and-style paths; the former @heroicons/react/solid path is replaced by @heroicons/react/20/solid.
React imports for Outline icons now use explicit size-and-style paths; the former @heroicons/react/outline path is replaced by @heroicons/react/24/outline.
Vue imports for Solid icons now use explicit size-and-style paths; the former @heroicons/vue/solid path is replaced by @heroicons/vue/20/solid.
Vue imports for Outline icons now use explicit size-and-style paths; the former @heroicons/vue/outline path is replaced by @heroicons/vue/24/outline.
Many icons were renamed to more literal names describing what the icon is. Update imports to the new names; examples include mail to envelope and search to magnifying-glass.
New APIs and options 1
Heroicons v2.0 introduces Outline, Solid, and Mini styles. Outline uses a 1.5px stroke in a 24px view box; Solid uses filled shapes in a 24px view box; Mini uses filled shapes in a 20px view box.