app').If you get an error with TS, make an effort usage( Vue3Spline, title: "Vue3Spline" ).To determine global elements for Volar type-checking you will need to have to include:.// components.d.ts.declare module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to utilize:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in layout.label string (nonpayment: 'Vue3Spline') - established custom-made element name.Alternatively you may additionally import the part locally.bring in Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can at that point use the part in your template.
Nuxt 3.This is actually still speculative. Will certainly be actually updated quickly.You can easily mount vue3-spline over yarn or npm. spline-runtime is actually a reliance of vue3-spline and should be instantly set up when you put in vue3-spline.If you are using npm:.npm put in vue3-spline@latest-- save.If you are actually making use of yarn:.yarn include vue3-spline@latest.Develop a folder phoned plugins at the origin of your task.Develop a report called Vue3Spline.client.ts inside the plugins directory site.Add the complying with code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy with TS, try usage( Vue3Spline, name: "Vue3Spline" ).This should enroll as an international element that you can call anywhere in your application under the tag.I would advise utilizing a moms and dad tag to make sure that the computer animation only tons with it the customer edge.
Github.