-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
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
feat(Icon)!: migrate from @egoist/tailwindcss-icons
to new @nuxt/icon
#1789
Conversation
@antfu Should I release |
@antfu Should I remove the use of |
@benjamincanac Sorry I was at conferences yesterday. Is the current state of Do you have the use cases of |
I guess it does, I haven't encountered any issue. I guess I'll remove |
nuxt-icon
v1@egoist/tailwindcss-icons
to nuxt-icon
v1
@egoist/tailwindcss-icons
to nuxt-icon
v1@egoist/tailwindcss-icons
to @nuxt/icon
@egoist/tailwindcss-icons
to @nuxt/icon
@egoist/tailwindcss-icons
to new @nuxt/icon
I'm glad that we've finally made the switch. Will certainly make life easier. |
Been playing around with this on |
@spencerjsmall I'll make a minor release tomorrow as |
One problem we're hitting with this migration is that Custom Local Collections can't be used with What would be your suggested workaround / path forward for this (except staying on |
@zigomir nuxt/icon#223 should improve it, I will release it soon later today |
awesome, this works, thank you! |
Icons Not Rendering in Tool Panel After UpdateAfter updating, the icons inside the tool panel of the AG Grid framework are no longer rendering as expected. Additionally, the following warning appears in the console:
|
Hi @luacooli, could I ask you to open up a new issue for this? |
π Linked issue
Resolves #1188
Resolves #1043
Resolves #1045
Resolves #1182
Resolves #1687
Resolves #1886
Resolves https://github.com/nuxt/ui-pro/issues/143
β Type of change
π Description
This PR removes the
@egoist/tailwindcss-icons
dependency in favor of the next major version ofnuxt-icon
which is now officially@nuxt/icon
.Thanks to the incredible work of @antfu who did a complete rewrite of the module, it now works much better with SSR (no flicking on the client side) so we no longer need to rely on Tailwind CSS to bundle icons. You can check nuxt/icon#154 for the full list of changes.
This PR introduces some breaking changes, but is a big step towards
v3
:ui.icons
module option (nuxt.config.ts
) is removedYou no longer need to specify which Iconify collection you want to use as
@nuxt/icon
discovers them automatically. You can remove it safely if you used it with an array of collection or withall
. Nuxt Icon will also automatically warn you if you didn't install a@iconify-json
collection.If you used it as an object to provide custom collections, you can now use the
icon
key in yournuxt.config.ts
: https://github.com/nuxt/icon?tab=readme-ov-file#custom-local-collectionsdynamic
prop (UIcon.vue
) and theui.icons.dynamic
option (app.config.ts
) are removedThe
dynamic
prop was introduced in https://github.com/nuxt/ui/releases/tag/v2.11.0 to use nuxt-icon instead of the default behaviour with @egoist/tailwindcss-icons. It was useful when using dynamic class names or for icons coming from a database for example.You no longer need this as
@nuxt/icon
will automatically fallback to Iconify API when the requested icon is not bundled.nuxtIcon
option has been renamed toicon
(app.config.ts
)When using the
dynamic
mode (nuxt-icon
), you might have used thenuxtIcon
key in yourapp.config.ts
. In Nuxt Icon v1, this has been renamed toicon
: https://github.com/nuxt/icon?tab=readme-ov-file#configuration-%EF%B8%8Fπ Checklist