Closed pheng0077 closed 2 years ago
@sokphengkean please use https://github.com/fumeapp/tailvue
@sokphengkean please use https://github.com/fumeapp/tailvue I've tried to follow the instruction, but it shows $toast is not defined. Did I miss something?
buildModules: ["@nuxtjs/tailwindcss", "@tailvue/nuxt"],
tailwind.config.js
module.exports = { content: [
components//*.{vue,js},
layouts/*/.vue,
pages//*.vue,
composables/*/.{js,ts},
plugins/*/.{js,ts},
App.{js,ts,vue},
app.{js,ts,vue}, "node_modules/tailvue/dist/tailvue.es.js", ], theme: { extend: {}, }, plugins: [], };
In app.vue function call $toast.show("Hello World");
@sokphengkean did you 1st do in app.vue:
const { $toast } = useNuxtApp();
It works. Thank you so much :)
yarn add nuxt-tailvue