app').If you receive an inaccuracy along with TS, attempt usage( Vue3Spline, label: "Vue3Spline" ).To describe worldwide parts for Volar type-checking you will need to add:.// components.d.ts.proclaim element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in theme.title cord (nonpayment: 'Vue3Spline') - specified personalized part title.Alternatively you may likewise import the element locally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can easily at that point make use of the element in your layout.
Nuxt 3.This is still experimental. Will be actually updated very soon.You may mount vue3-spline over yarn or npm. spline-runtime is a dependence of vue3-spline as well as ought to be immediately mounted when you set up vue3-spline.If you are actually using npm:.npm mount vue3-spline@latest-- save.If you are making use of yarn:.anecdote add vue3-spline@latest.Create a file called plugins at the origin of your job.Create a report named Vue3Spline.client.ts inside the plugins directory.Include the observing code to the Vue3Spline.client.ts data.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive a mistake with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).This need to enroll as a global component that you can call throughout your application under the tag.I will recommend using a parent tag to ensure that the animation only loads know the client side.
Github.