app').If you get an inaccuracy along with TS, try usage( Vue3Spline, name: "Vue3Spline" ).To determine worldwide components for Volar type-checking you will need to incorporate:.// components.d.ts.declare module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// use in template.label cord (default: 'Vue3Spline') - established personalized component label.Additionally you can additionally import the element in your area.import Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can then utilize the element in your layout.
Nuxt 3.This is actually still speculative. Are going to be actually improved very soon.You may put up vue3-spline over anecdote or npm. spline-runtime is actually an addiction of vue3-spline as well as need to be actually automatically put in when you put up vue3-spline.If you are utilizing npm:.npm install vue3-spline@latest-- save.If you are utilizing anecdote:.anecdote add vue3-spline@latest.Develop a file contacted plugins at the origin of your job.Generate a documents named Vue3Spline.client.ts inside the plugins directory site.Incorporate the observing code to the Vue3Spline.client.ts file.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an error along with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).This ought to register as a global part that you can easily refer to as anywhere in your app under the tag.I would encourage making use of a parent tag to ensure that the computer animation merely lots in on the customer edge.
Github.