Skip to main content
Home
This release is 2 versions behind 1.0.13 — the latest version of @preact-icons/fa. Jump to latest

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
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
a year ago (1.0.11)

Font Awesome icons for preact

JSR

License CC BY 4.0 License

Project https://fontawesome.com/

See available icons here

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

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/fa

Import symbol

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

Import directly with a jsr specifier

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

Add Package

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

Import symbol

import * as fa from "@preact-icons/fa";

Add Package

yarn add jsr:@preact-icons/fa
or (using Yarn 4.8 or older)
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";