app').If you receive an error along with TS, try usage( Vue3Spline, title: "Vue3Spline" ).To determine global components for Volar type-checking you will certainly require to include:.// components.d.ts.proclaim component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to use:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in design template.label cord (nonpayment: 'Vue3Spline') - prepared customized element label.Additionally you can additionally import the element locally.import Vue3Spline from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You can at that point make use of the component in your template.
Nuxt 3.This is still speculative. Will be updated quickly.You can put up vue3-spline over anecdote or even npm. spline-runtime is a reliance of vue3-spline as well as need to be actually automatically set up when you mount vue3-spline.If you are actually making use of npm:.npm mount vue3-spline@latest-- spare.If you are using yarn:.anecdote add vue3-spline@latest.Produce a directory contacted plugins at the root of your job.Create a data named Vue3Spline.client.ts inside the plugins directory.Add 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 obtain an inaccuracy along with TS, attempt usage( Vue3Spline, name: "Vue3Spline" ).This must sign up as a global part that you can refer to as anywhere in your application under the tag.I will advise making use of a moms and dad tag to make sure that the animation only loads with it the client edge.
Github.