app').If you obtain an inaccuracy with TS, attempt make use of( Vue3Spline, title: "Vue3Spline" ).To describe global components for Volar type-checking you will definitely require to include:.// components.d.ts.proclaim element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to make use of:.app.use( Vue3Spline, label: 'SplineAnimation')// usage in layout.name strand (nonpayment: 'Vue3Spline') - specified personalized component title.Additionally you can easily likewise import the part regionally.import Vue3Spline from 'vue3-spline'.export default parts: Vue3Spline,.,.You can then make use of the element in your layout.
Nuxt 3.This is actually still speculative. Are going to be actually updated soon.You may mount vue3-spline over anecdote or even npm. spline-runtime is a dependence of vue3-spline as well as ought to be actually instantly mounted when you install vue3-spline.If you are making use of npm:.npm mount vue3-spline@latest-- conserve.If you are using yarn:.anecdote include vue3-spline@latest.Develop a directory contacted plugins at the origin of your venture.Produce a file called Vue3Spline.client.ts inside the plugins listing.Incorporate the following code to the Vue3Spline.client.ts data.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive a mistake with TS, attempt usage( Vue3Spline, title: "Vue3Spline" ).This should register as an international component that you can call anywhere in your app under the tag.I would recommend using a parent tag to ensure that the computer animation merely lots in on the customer side.
Github.