NuxtN
Nuxt3mo ago
4 replies
Nausicaä

I can't use the lucide icon in vue 3?

I'm using the Nuxt UI only for my vue project.

But following the installation guide, I can't get the icons to render:

import * as z from 'zod' import type { FormSubmitEvent, AuthFormField } from '@nuxt/ui' import { authClient } from '/src/services/auth' ... const providers = [{ label: 'Google', icon: 'i-simple-icons-google', onClick: () => { toast.add({ title: 'Google', description: 'Login with Google' }) } }, { label: 'GitHub', icon: 'i-simple-icons-github', onClick: () => { toast.add({ title: 'GitHub', description: 'Login with GitHub' }) } }]

main.ts:
import './assets/main.css' import { createApp } from 'vue' import { createRouter, createWebHistory } from 'vue-router' import ui from '@nuxt/ui/vue-plugin' import App from './App.vue' import Login from "./components/auth/Login.vue"; import Signup from "./components/auth/Signup.vue";


vite config:
import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import ui from '@nuxt/ui/vite' export default defineConfig({ plugins: [ vue(), ui(), ], })
Was this page helpful?