app').If you obtain an inaccuracy with TS, try usage( Vue3Spline, label: "Vue3Spline" ).To specify worldwide parts for Volar type-checking you are going to need to have to add:.// components.d.ts.declare component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in design template.label cord (nonpayment: 'Vue3Spline') - prepared customized part title.Conversely you can easily likewise import the part regionally.import Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can easily after that utilize the component in your design template.
Nuxt 3.This is still experimental. Will certainly be actually improved quickly.You can put in vue3-spline over anecdote or npm. spline-runtime is actually a dependency of vue3-spline and also should be actually instantly installed when you set up vue3-spline.If you are actually using npm:.npm install vue3-spline@latest-- save.If you are actually using anecdote:.anecdote add vue3-spline@latest.Create a folder called plugins at the root of your task.Create a file named Vue3Spline.client.ts inside the plugins listing.Incorporate the following code to the Vue3Spline.client.ts file.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an error along with TS, attempt use( Vue3Spline, name: "Vue3Spline" ).This should register as a global component that you can easily call throughout your app under the tag.I would advise utilizing a parent tag to make certain that the animation just lots with it the customer edge.
Github.