Skip to main content
Home

Built and signed on GitHub Actions

Heroicons 2 icons for preact

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
4 months ago (1.0.13)

Heroicons 2 icons for preact

JSR

License MIT

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

See available icons here

install the module

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:preact@10.22.1",
 "preact/jsx-runtime": "npm:preact@10.22.1/jsx-runtime",
 "preact/hooks": "npm:preact@10.22.1/hooks",
}

import an icon from all icons

import { HiAcademicCap } from "@preact-icons/hi2"

import a single icon, downloading just one icon

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

or using default export

import HiAcademicCap from "react-icons/hi2/HiAcademicCap"
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@preact-icons/hi2

Import symbol

import * as hi_ from "@preact-icons/hi2";
or

Import directly with a jsr specifier

import * as hi_ from "jsr:@preact-icons/hi2";

Add Package

pnpm i jsr:@preact-icons/hi2
or (using pnpm 10.8 or older)
pnpm dlx jsr add @preact-icons/hi2

Import symbol

import * as hi_ from "@preact-icons/hi2";

Add Package

yarn add jsr:@preact-icons/hi2
or (using Yarn 4.8 or older)
yarn dlx jsr add @preact-icons/hi2

Import symbol

import * as hi_ from "@preact-icons/hi2";

Add Package

vlt install jsr:@preact-icons/hi2

Import symbol

import * as hi_ from "@preact-icons/hi2";

Add Package

npx jsr add @preact-icons/hi2

Import symbol

import * as hi_ from "@preact-icons/hi2";

Add Package

bunx jsr add @preact-icons/hi2

Import symbol

import * as hi_ from "@preact-icons/hi2";