Closed zaha closed 1 year ago
For me I just needed to import default like this:
import createIconPack from "astro-icon";
But I could also import the function like this:
import { createIconPack } from "astro-icon/lib/createIconPack";
However this did not work:
import { createIconPack } from "astro-icon/pack";
Strange 🤔
Also the Documentation on "Local Icon Packs" has two default exports which makes it difficult to follow, it would probably be best to put an "or" or separate the snippets as alternatives to communicate it better.
Hi!
While trying to create my own local icon package I noticed the docs for astro/icon don't reflect the latest changes in the import path here: https://github.com/natemoo-re/astro-icon#local-icon-packs
should be
according to the changelog.
Also, the following comment could be improved:
Does this mean the icon will be searched for in
src/icons/heroicons/outline
? I tried it like that but I'm getting a pretty long error message :sweat_smile:I'm also missing the info whether it's possible to skip the
dir
parameter and put the icons directly intosrc/icons/heroicons/
?