app').If you acquire a mistake with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).To determine global components for Volar type-checking you will certainly need to incorporate:.// components.d.ts.state module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to use:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in design template.label string (nonpayment: 'Vue3Spline') - established custom-made element title.Conversely you can additionally import the element in your area.import Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You may at that point use the component in your design template.
Nuxt 3.This is actually still experimental. Will be actually updated soon.You may install vue3-spline over anecdote or even npm. spline-runtime is a dependency of vue3-spline as well as need to be instantly installed when you install vue3-spline.If you are using npm:.npm put up vue3-spline@latest-- spare.If you are actually utilizing anecdote:.anecdote incorporate vue3-spline@latest.Generate a directory called plugins at the origin of your venture.Make a documents called Vue3Spline.client.ts inside the plugins listing.Add the adhering to code to the Vue3Spline.client.ts data.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an error along with TS, make an effort usage( Vue3Spline, name: "Vue3Spline" ).This should sign up as a global part that you may call throughout your application under the tag.I would certainly advise using a parent tag to guarantee that the animation only lots in on the customer edge.
Github.