using iconify icons with unocss in a web BROWSER/plain html (no bundler) #3067
Answered
by
zyyv
fessacchiotto
asked this question in
Q&A
-
hi! what should I include in the browser to use iconify icons with unocss? <script src="https://cdn.jsdelivr.net/npm/iconify-icon@1.0.8/dist/iconify-icon.min.js"></script>
<!--- this doesn't work ----->
<div class="i-mdi-alarm text-orange-400 text-4xl"></div>
<!-- this works! ----->
<div class="text-orange-400 text-4xl">
<iconify-icon icon="mdi:home"></iconify-icon>
</div> |
Beta Was this translation helpful? Give feedback.
Answered by
zyyv
Sep 4, 2023
Replies: 2 comments 2 replies
-
Accord to your code, i think you are using |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fessacchiotto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Accord to your code, i think you are using
runtime
package, sorry for uno not providepresetIcons
package, so not support use icons.