app').If you acquire a mistake along with TS, make an effort usage( Vue3Spline, label: "Vue3Spline" ).To describe international components for Volar type-checking you will certainly need to include:.// components.d.ts.announce module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to make use of:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in template.label strand (default: 'Vue3Spline') - established custom-made part title.As an alternative you can easily likewise import the element locally.import Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily at that point utilize the part in your theme.
Nuxt 3.This is actually still experimental. Are going to be actually upgraded quickly.You can mount vue3-spline over anecdote or npm. spline-runtime is an addiction of vue3-spline and should be actually immediately mounted when you put in vue3-spline.If you are actually making use of npm:.npm mount vue3-spline@latest-- spare.If you are utilizing anecdote:.anecdote add vue3-spline@latest.Generate a file contacted plugins at the root of your job.Develop a data named Vue3Spline.client.ts inside the plugins listing.Include the adhering to code to the Vue3Spline.client.ts report.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy with TS, attempt use( Vue3Spline, name: "Vue3Spline" ).This should sign up as an international element that you may name throughout your application under the tag.I would highly recommend making use of a moms and dad tag to ensure that the animation merely lots know the client side.
Github.