app').If you obtain an inaccuracy along with TS, attempt use( Vue3Spline, name: "Vue3Spline" ).To specify global components for Volar type-checking you will definitely need to incorporate:.// components.d.ts.proclaim module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename part to make use of:.app.use( Vue3Spline, name: 'SplineAnimation')// use in layout.label cord (nonpayment: 'Vue3Spline') - set customized part name.Additionally you can also import the element regionally.bring in Vue3Spline from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You can easily then use the part in your template.
Nuxt 3.This is actually still speculative. Will definitely be actually improved very soon.You can set up vue3-spline over anecdote or even npm. spline-runtime is a dependency of vue3-spline as well as ought to be actually immediately set up when you put up vue3-spline.If you are actually using npm:.npm put in vue3-spline@latest-- save.If you are utilizing yarn:.anecdote include vue3-spline@latest.Create a folder contacted plugins at the origin of your job.Produce a data called Vue3Spline.client.ts inside the plugins directory.Include the observing code to the Vue3Spline.client.ts file.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy along with TS, attempt use( Vue3Spline, name: "Vue3Spline" ).This ought to register as an international component that you can easily call anywhere in your application under the tag.I will highly recommend utilizing a parent tag to make certain that the computer animation only lots know the client edge.
Github.