Font Awesome icons for deno / Preact
License CC BY 4.0 License
Project https://fontawesome.com/
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/fa": "https://cdn.jsdelivr.net/gh/urielch/react-icons-fa@1.0.7/mod.ts",
"react-icons/fa/": "https://cdn.jsdelivr.net/gh/urielch/react-icons-fa@1.0.7/ico/",
}
}
Import an icon without import_map by and afer loading all icons from the lib fa
import { Fa500Px } from "https://deno.land/x/react_icons_fa@1.0.7/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"