Skip to main content
Deno 2 is finally here 🎉️
Learn more

Heroicons 2 icons for deno / Preact

License MIT

Project https://github.com/tailwindlabs/heroicons

See available icons here

import_map.json

For a transparent usage:

{
  "imports": {
    "preact":  "https://esm.sh/preact@10.15.1",
    "preact/": "https://esm.sh/preact@10.15.1/",
    "react-icons/hi2":  "https://cdn.jsdelivr.net/gh/urielch/react-icons-hi2@1.0.8/mod.ts",
    "react-icons/hi2/": "https://cdn.jsdelivr.net/gh/urielch/react-icons-hi2@1.0.8/ico/",
  }
}

Import an icon without import_map by and afer loading all icons from the lib hi2

import { HiAcademicCap } from "https://deno.land/x/react_icons_hi2@1.0.8/mod.ts"

import_map import an icon from all icons

import { HiAcademicCap } from "react-icons/hi2"

import a single icon, downloading just one icon

import { HiAcademicCap } from "react-icons/hi2/HiAcademicCap.ts"

or using default export

import HiAcademicCap from "react-icons/hi2/HiAcademicCap.ts"