app').If you obtain a mistake with TS, attempt make use of( Vue3Spline, title: "Vue3Spline" ).To specify global components for Volar type-checking you will definitely require to add:.// components.d.ts.announce module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to utilize:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in layout.name strand (nonpayment: 'Vue3Spline') - set personalized component title.Additionally you can easily additionally import the component in your area.import Vue3Spline from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You may at that point make use of the component in your layout.
Nuxt 3.This is still experimental. Will definitely be upgraded soon.You may put in vue3-spline over yarn or even npm. spline-runtime is a reliance of vue3-spline as well as ought to be instantly put up when you put up vue3-spline.If you are making use of npm:.npm mount vue3-spline@latest-- spare.If you are utilizing anecdote:.anecdote add vue3-spline@latest.Develop a directory gotten in touch with plugins at the origin of your venture.Develop a data named Vue3Spline.client.ts inside the plugins listing.Incorporate the adhering to code to the Vue3Spline.client.ts report.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy with TS, attempt usage( Vue3Spline, label: "Vue3Spline" ).This must sign up as an international component that you can call anywhere in your application under the tag.I will recommend making use of a moms and dad tag to ensure that the animation simply loads in on the customer edge.
Github.