app').If you obtain an inaccuracy with TS, attempt usage( Vue3Spline, name: "Vue3Spline" ).To determine international parts for Volar type-checking you are going to 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 to have rename component to use:.app.use( Vue3Spline, name: 'SplineAnimation')// use in layout.label string (nonpayment: 'Vue3Spline') - established personalized element title.Alternatively you may also import the part locally.import Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can at that point make use of the element in your template.
Nuxt 3.This is still speculative. Will certainly be improved very soon.You can easily put in vue3-spline over yarn or even npm. spline-runtime is an addiction of vue3-spline and also need to be actually instantly installed when you mount vue3-spline.If you are actually utilizing npm:.npm put in vue3-spline@latest-- save.If you are actually using yarn:.yarn add vue3-spline@latest.Create a file gotten in touch with plugins at the root of your venture.Generate a report named Vue3Spline.client.ts inside the plugins directory site.Add the following code to the Vue3Spline.client.ts report.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy along with TS, try usage( Vue3Spline, title: "Vue3Spline" ).This need to enroll as an international part that you can easily call throughout your app under the tag.I will advise using a parent tag to ensure that the computer animation just tons in on the customer edge.
Github.