app').If you get a mistake along with TS, try make use of( Vue3Spline, label: "Vue3Spline" ).To define worldwide parts for Volar type-checking you are going to need to add:.// components.d.ts.state module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to use:.app.use( Vue3Spline, title: 'SplineAnimation')// use in theme.title string (default: 'Vue3Spline') - prepared custom element label.Conversely you may also import the part locally.import Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily at that point utilize the part in your layout.
Nuxt 3.This is still experimental. Will definitely be actually updated very soon.You can easily mount vue3-spline over yarn or even npm. spline-runtime is a reliance of vue3-spline as well as ought to be automatically installed when you put in vue3-spline.If you are actually making use of npm:.npm put in vue3-spline@latest-- save.If you are actually utilizing anecdote:.anecdote incorporate vue3-spline@latest.Generate a file phoned plugins at the root of your venture.Generate a file called Vue3Spline.client.ts inside the plugins directory.Add the observing code to the Vue3Spline.client.ts file.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy along with TS, make an effort make use of( Vue3Spline, name: "Vue3Spline" ).This ought to register as an international component that you can easily name throughout your application under the tag.I will suggest using a moms and dad tag to guarantee that the animation merely tons in on the client side.
Github.