app').If you get an error along with TS, attempt make use of( Vue3Spline, name: "Vue3Spline" ).To define international elements for Volar type-checking you will certainly need to have to incorporate:.// components.d.ts.announce module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in layout.label strand (default: 'Vue3Spline') - established customized component label.Alternatively you can easily likewise import the element locally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may after that make use of the component in your design template.
Nuxt 3.This is actually still experimental. Will be actually improved soon.You can easily set up vue3-spline over yarn or even npm. spline-runtime is actually a dependence of vue3-spline as well as must be immediately put up when you set up vue3-spline.If you are utilizing npm:.npm set up vue3-spline@latest-- save.If you are making use of anecdote:.yarn incorporate vue3-spline@latest.Generate a folder phoned plugins at the origin of your venture.Generate a report named Vue3Spline.client.ts inside the plugins listing.Incorporate 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 acquire an inaccuracy with TS, make an effort usage( Vue3Spline, name: "Vue3Spline" ).This ought to sign up as a global element that you can name anywhere in your application under the tag.I will highly recommend utilizing a moms and dad tag to guarantee that the computer animation just lots with it the client side.
Github.