We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add when icon name is inside a variable?
const icon="carbon-user" <carbon-user class="text-5xl" />
This is not working on Vitesse <span class="iconify" data-icon="carbon:center-circle" data-inline="false"></span>
<span class="iconify" data-icon="carbon:center-circle" data-inline="false"></span>
The text was updated successfully, but these errors were encountered:
You should be able to use <component :is="icon" />. (docs)
<component :is="icon" />
If it is not working, I would suggest you to use his old Icon component
Icon
Sorry, something went wrong.
@rashidpathiyil The syntax you provide requires Iconify runtime, where you can use it with purge-icons installed. https://github.com/antfu/purge-icons/tree/main/packages/vite-plugin-purge-icons Or just simply import @iconify/iconify if you don't need to bundle them.
purge-icons
@iconify/iconify
Otherwise, @SamuelAlev already offered the solution.
now how to do you use icons from variable using unocss icons?
No branches or pull requests
How to add when icon name is inside a variable?
This is not working on Vitesse
<span class="iconify" data-icon="carbon:center-circle" data-inline="false"></span>
The text was updated successfully, but these errors were encountered: