app').If you get a mistake along with TS, make an effort make use of( Vue3Spline, title: "Vue3Spline" ).To determine worldwide elements for Volar type-checking you will definitely need to add:.// components.d.ts.proclaim component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to use:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in design template.name string (nonpayment: 'Vue3Spline') - established customized component title.Additionally you can easily additionally import the component regionally.import Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can at that point make use of the element in your theme.
Nuxt 3.This is still speculative. Are going to be updated soon.You can easily put in vue3-spline over yarn or even npm. spline-runtime is an addiction of vue3-spline as well as must be automatically set up when you set up vue3-spline.If you are actually making use of npm:.npm install vue3-spline@latest-- spare.If you are actually using anecdote:.anecdote add vue3-spline@latest.Develop a folder called plugins at the origin of your project.Develop a file called Vue3Spline.client.ts inside the plugins directory site.Add the observing code to the Vue3Spline.client.ts documents.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake along with TS, attempt make use of( Vue3Spline, name: "Vue3Spline" ).This ought to sign up as a global part that you can easily call anywhere in your application under the tag.I would certainly suggest using a moms and dad tag to make certain that the animation simply lots with it the client side.
Github.