app').If you obtain an inaccuracy with TS, try usage( Vue3Spline, label: "Vue3Spline" ).To define international parts for Volar type-checking you are going to need to have to include:.// components.d.ts.proclaim component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename component to use:.app.use( Vue3Spline, label: 'SplineAnimation')// use in template.name strand (nonpayment: 'Vue3Spline') - specified custom-made element title.Additionally you can likewise import the component in your area.import Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may at that point use the element in your layout.
Nuxt 3.This is actually still speculative. Will certainly be upgraded soon.You may mount vue3-spline over anecdote or npm. spline-runtime is actually a reliance of vue3-spline as well as should be immediately mounted when you put in vue3-spline.If you are utilizing npm:.npm install vue3-spline@latest-- save.If you are actually using yarn:.yarn include vue3-spline@latest.Produce a directory contacted plugins at the root of your task.Develop a data called Vue3Spline.client.ts inside the plugins listing.Incorporate the observing code to the Vue3Spline.client.ts file.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get an inaccuracy with TS, attempt use( Vue3Spline, name: "Vue3Spline" ).This must register as an international element that you may name anywhere in your application under the tag.I will advise making use of a parent tag to guarantee that the computer animation merely bunches with it the customer edge.
Github.