app').If you receive an inaccuracy with TS, attempt usage( Vue3Spline, label: "Vue3Spline" ).To describe worldwide parts for Volar type-checking you will need to have to incorporate:.// components.d.ts.declare component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in design template.title cord (nonpayment: 'Vue3Spline') - established customized element label.As an alternative you may also import the element in your area.bring in Vue3Spline from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You can after that use the part in your layout.
Nuxt 3.This is still experimental. Are going to be upgraded soon.You can easily install vue3-spline over yarn or npm. spline-runtime is a dependence of vue3-spline and ought to be immediately put up when you install vue3-spline.If you are actually making use of npm:.npm put in vue3-spline@latest-- save.If you are actually utilizing yarn:.anecdote add vue3-spline@latest.Create a file contacted plugins at the origin of your venture.Create a report named Vue3Spline.client.ts inside the plugins directory site.Add the following code to the Vue3Spline.client.ts documents.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an error with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).This must register as a global element that you can easily name throughout your application under the tag.I would highly recommend utilizing a moms and dad tag to ensure that the computer animation simply loads in on the client side.
Github.