app').If you get a mistake along with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).To define global parts for Volar type-checking you are going to need to have to include:.// components.d.ts.state component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to utilize:.app.use( Vue3Spline, label: 'SplineAnimation')// use in template.name string (nonpayment: 'Vue3Spline') - specified custom part title.Conversely you can easily additionally import the component in your area.import Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can at that point make use of the component in your template.
Nuxt 3.This is actually still experimental. Will definitely be improved quickly.You can easily put in vue3-spline over yarn or npm. spline-runtime is actually a dependency of vue3-spline and need to be actually immediately installed when you put up vue3-spline.If you are actually using npm:.npm put up vue3-spline@latest-- save.If you are actually making use of anecdote:.yarn incorporate vue3-spline@latest.Generate a file called plugins at the origin of your project.Develop a documents called Vue3Spline.client.ts inside the plugins directory.Add the complying with code to the Vue3Spline.client.ts report.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get an error along with TS, make an effort make use of( Vue3Spline, label: "Vue3Spline" ).This must enroll as an international element that you may call anywhere in your application under the tag.I would certainly recommend using a parent tag to ensure that the computer animation only loads know the client side.
Github.