app').If you obtain a mistake with TS, try usage( Vue3Spline, title: "Vue3Spline" ).To describe international parts for Volar type-checking you will certainly need to include:.// components.d.ts.proclaim element '@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 template.label cord (nonpayment: 'Vue3Spline') - specified custom part name.Additionally you can easily also import the part locally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may at that point utilize the element in your layout.
Nuxt 3.This is still speculative. Are going to be upgraded quickly.You can easily put up vue3-spline over anecdote or even npm. spline-runtime is actually an addiction of vue3-spline and also should be automatically set up when you put in vue3-spline.If you are utilizing npm:.npm put in vue3-spline@latest-- conserve.If you are utilizing anecdote:.anecdote incorporate vue3-spline@latest.Generate a folder called plugins at the root of your job.Develop a documents named Vue3Spline.client.ts inside the plugins listing.Incorporate 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 obtain an inaccuracy with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).This need to register as a global component that you may call throughout your application under the tag.I will advise using a parent tag to guarantee that the animation only loads in on the client edge.
Github.