Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.18 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.18 KB

Ionicons 4 icons for preact

JSR

License MIT

Project https://ionicons.com/

See available icons here

install the module

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

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:[email protected]",
 "preact/jsx-runtime": "npm:[email protected]/jsx-runtime",
 "preact/hooks": "npm:[email protected]/hooks",
}

import an icon from all icons

import { IoIosAddCircleOutline } from "@preact-icons/io"

import a single icon, downloading just one icon

import { IoIosAddCircleOutline } from "react-icons/io/IoIosAddCircleOutline"

or using default export

import IoIosAddCircleOutline from "react-icons/io/IoIosAddCircleOutline"