License MIT
Project https://github.com/tailwindlabs/heroicons
deno add @preact-icons/hi2
dnpx jsr add @preact-icons/hi2
pnpm dlx jsr add @preact-icons/hi2
bunx jsr add @preact-icons/hi2
You may need to update your preact mapping to avoid mixing JSR and http import: Currently Deno fresh import preact using https://esm.sh/preact http import can not be mixed with JSR package, so you may need to update your preact mapping:
{
"preact": "npm:[email protected]",
"preact/jsx-runtime": "npm:[email protected]/jsx-runtime",
"preact/hooks": "npm:[email protected]/hooks",
}
import { HiAcademicCap } from "@preact-icons/hi2"
import { HiAcademicCap } from "react-icons/hi2/HiAcademicCap"
or using default export
import HiAcademicCap from "react-icons/hi2/HiAcademicCap"