app').If you receive an inaccuracy along with TS, attempt usage( Vue3Spline, name: "Vue3Spline" ).To describe global components for Volar type-checking you will certainly require to include:.// components.d.ts.proclaim module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to use:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in theme.title strand (nonpayment: 'Vue3Spline') - established personalized element label.Alternatively you may likewise import the part in your area.import Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can at that point utilize the part in your template.
Nuxt 3.This is actually still experimental. Are going to be actually upgraded very soon.You may install vue3-spline over anecdote or even npm. spline-runtime is actually a dependence of vue3-spline and must be actually instantly put in when you install vue3-spline.If you are actually using npm:.npm mount vue3-spline@latest-- conserve.If you are actually making use of yarn:.yarn incorporate vue3-spline@latest.Produce a folder called plugins at the root of your task.Make a report called Vue3Spline.client.ts inside the plugins listing.Incorporate the adhering to code to the Vue3Spline.client.ts documents.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).This must register as a global part that you can call throughout your app under the tag.I would advise making use of a moms and dad tag to ensure that the computer animation just tons with it the customer edge.
Github.