app').If you obtain an inaccuracy along with TS, attempt use( Vue3Spline, label: "Vue3Spline" ).To describe worldwide elements for Volar type-checking you will definitely need to have to add:.// components.d.ts.announce component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to use:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in template.title strand (default: 'Vue3Spline') - specified custom-made element label.Alternatively you can easily additionally import the element regionally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can easily at that point use the element in your template.
Nuxt 3.This is still experimental. Are going to be actually upgraded soon.You may set up vue3-spline over anecdote or even npm. spline-runtime is actually a dependence of vue3-spline and should be immediately put up when you put in vue3-spline.If you are actually utilizing npm:.npm put in vue3-spline@latest-- conserve.If you are actually utilizing anecdote:.anecdote add vue3-spline@latest.Produce a file gotten in touch with plugins at the origin of your task.Create a file named Vue3Spline.client.ts inside the plugins directory.Include the complying with code to the Vue3Spline.client.ts data.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire a mistake along with TS, try usage( Vue3Spline, label: "Vue3Spline" ).This should register as an international part that you may call anywhere in your app under the tag.I would encourage utilizing a moms and dad tag to ensure that the animation simply loads in on the client edge.
Github.