/react-icons-cg

deno fresh react-icons for cg

Primary LanguageTypeScript

css.gg icons for preact

JSR

License MIT

Project https://github.com/astrit/css.gg

See available icons here

install the module

deno add @preact-icons/cg
dnpx jsr add @preact-icons/cg
pnpm dlx jsr add @preact-icons/cg
bunx jsr add @preact-icons/cg

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 { CgAbstract } from "@preact-icons/cg"

import a single icon, downloading just one icon

import { CgAbstract } from "react-icons/cg/CgAbstract"

or using default export

import CgAbstract from "react-icons/cg/CgAbstract"