icon icon indicating copy to clipboard operation
icon copied to clipboard

how to use it inside vuetify v-icon component

Open prashantnirgun opened this issue 3 years ago • 2 comments

this is not a bug just a simple question I am using vite + nuxt3 + vuetify3 my object is to use it. I am new to nuxt-icon please bare with me. I had following questions please answer it 01 nuxt-icon has tree shaking feature I mean it will only import those icons which are used in code 02 If I want to use mdi:alarm-light inside vuetify it should work as I have access to material Icon library right but it fails to display the icon.

// nuxt.config.ts
//import { defineNuxtConfig } from 'nuxt'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  css: ['vuetify/lib/styles/main.sass',],
  modules: ['nuxt-icon'],
  build: {
    transpile: ['vuetify'],
  },
  vite: {
    define: {
      'process.env.DEBUG': false,
    },
  },
})```

prashantnirgun avatar Jan 08 '23 07:01 prashantnirgun

Best would be to create a Stackblitz example so I can help you :)

atinux avatar Jan 10 '23 13:01 atinux