app').If you receive an inaccuracy along with TS, attempt make use of( Vue3Spline, name: "Vue3Spline" ).To determine global parts for Volar type-checking you will require to include:.// components.d.ts.proclaim element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in template.name string (default: 'Vue3Spline') - established custom element name.Alternatively you can easily likewise import the part regionally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can easily then make use of the part in your layout.
Nuxt 3.This is still experimental. Are going to be updated soon.You may mount vue3-spline over yarn or npm. spline-runtime is a reliance of vue3-spline as well as need to be actually immediately put up when you put up vue3-spline.If you are using npm:.npm mount vue3-spline@latest-- save.If you are actually making use of anecdote:.anecdote add vue3-spline@latest.Develop a folder gotten in touch with plugins at the root of your project.Produce a file called Vue3Spline.client.ts inside the plugins listing.Incorporate the following code to the Vue3Spline.client.ts documents.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an error with TS, make an effort make use of( Vue3Spline, label: "Vue3Spline" ).This ought to register as an international component that you can call throughout your app under the tag.I will recommend making use of a parent tag to make certain that the animation just lots in on the customer side.
Github.