This release is 2 versions behind 1.0.13 — the latest version of @preact-icons/fa. Jump to latest
@preact-icons/fa@1.0.11Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
Font Awesome icons for Preact
This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers




JSR Score
100%
Published
a year ago (1.0.11)
Font Awesome icons for preact
License CC BY 4.0 License
Project https://fontawesome.com/
import_map.json
For a transparent usage:
{ "imports": { "@preact-icons/common": "jsr:@preact-icons/common@^1.0.10", "preact": "npm:preact@10.22.1", "preact/jsx-runtime": "npm:preact@10.22.1/jsx-runtime", "preact/hooks": "npm:preact@10.22.1/hooks", "react-icons/fa": "jsr:@preact-icons/fa@^1.0.11/mod.ts", "react-icons/fa/": "jsr:@preact-icons/fa@^1.0.11/ico/", } }
Import an icon without import_map by and afer loading all icons from the lib fa
import { Fa500Px } from "jsr:preact-icons/fa@1.0.11/mod.ts"
import_map import an icon from all icons
import { Fa500Px } from "react-icons/fa"
import a single icon, downloading just one icon
import { Fa500Px } from "react-icons/fa/Fa500Px.ts"
or using default export
import Fa500Px from "react-icons/fa/Fa500Px.ts"
Built and signed on
GitHub Actions
Add Package
deno add jsr:@preact-icons/fa
Import symbol
import * as fa from "@preact-icons/fa";
Import directly with a jsr specifier
import * as fa from "jsr:@preact-icons/fa";
Add Package
pnpm i jsr:@preact-icons/fa
pnpm dlx jsr add @preact-icons/fa
Import symbol
import * as fa from "@preact-icons/fa";
Add Package
yarn add jsr:@preact-icons/fa
yarn dlx jsr add @preact-icons/fa
Import symbol
import * as fa from "@preact-icons/fa";
Add Package
vlt install jsr:@preact-icons/fa
Import symbol
import * as fa from "@preact-icons/fa";
Add Package
npx jsr add @preact-icons/fa
Import symbol
import * as fa from "@preact-icons/fa";
Add Package
bunx jsr add @preact-icons/fa
Import symbol
import * as fa from "@preact-icons/fa";