app').If you get a mistake with TS, try use( Vue3Spline, label: "Vue3Spline" ).To describe global elements for Volar type-checking you are going to need to add:.// components.d.ts.announce component '@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, name: 'SplineAnimation')// usage in design template.name string (default: 'Vue3Spline') - established custom element name.Conversely you can additionally import the component regionally.import Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You may at that point utilize the part in your layout.
Nuxt 3.This is actually still experimental. Will certainly be actually updated quickly.You can put in vue3-spline over yarn or even npm. spline-runtime is actually an addiction of vue3-spline as well as must be actually automatically put up when you mount vue3-spline.If you are using npm:.npm put up vue3-spline@latest-- conserve.If you are actually making use of yarn:.anecdote incorporate vue3-spline@latest.Produce a directory phoned plugins at the origin of your job.Create a file named Vue3Spline.client.ts inside the plugins directory site.Include the following code to the Vue3Spline.client.ts report.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an error along with TS, try use( Vue3Spline, title: "Vue3Spline" ).This should sign up as an international part that you can easily name throughout your application under the tag.I would suggest making use of a parent tag to guarantee that the computer animation only loads with it the customer side.
Github.