How do I setup icon files to be imported by an index.js file #1187
Answered
by
shyakadavis
FranklinP44
asked this question in
Help
-
Disclaimer: I'm very new to this. In the examples, there are import statements that read:
I assume I need to download all the icons and put them in a components/docs folder, but after that, how do I set up the index.js file that's being referenced? |
Beta Was this translation helpful? Give feedback.
Answered by
shyakadavis
Jul 14, 2024
Replies: 1 comment 4 replies
-
Hey, @FranklinP44 It's really simple; they basically do this: https://github.com/huntabyte/shadcn-svelte/blob/main/apps/www/src/lib/components/docs/icons/index.ts And then when using, you just do: <Icons.close aria-hidden="true" class="size-5" /> |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
FranklinP44
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, @FranklinP44
It's really simple; they basically do this: https://github.com/huntabyte/shadcn-svelte/blob/main/apps/www/src/lib/components/docs/icons/index.ts
And then when using, you just do: