nuxt / icon

The <Icon> component, supporting Iconify, Emojis and custom components.
https://stackblitz.com/edit/nuxt-icon-playground?file=app.vue
MIT License
874 stars 38 forks source link

TailwindCSS `hidden` class not hiding `Icon` #68

Closed letavocado closed 11 months ago

letavocado commented 1 year ago

TailwindCSS hidden class not hiding Icon.

<Icon name="mdi:chevron-down" class="hidden" />

https://github.com/nuxt-modules/icon/blob/0ae93b806f0633f9ee65599136655c0456ffed95/src/runtime/Icon.vue#L70-L73

Atinux commented 11 months ago

I guess with !hidden?

letavocado commented 11 months ago

I guess with !hidden?

Yep, it's works with !hidden. And probably when I opened this issue, I thought that the "normal" behavior is when it works with hidden too.

Cheers!