app').If you receive an inaccuracy along with TS, try usage( Vue3Spline, name: "Vue3Spline" ).To describe global parts for Volar type-checking you will need to have to incorporate:.// components.d.ts.declare module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to utilize:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in layout.name string (nonpayment: 'Vue3Spline') - set personalized part title.As an alternative you may also import the component locally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You may then make use of the component in your template.
Nuxt 3.This is actually still experimental. Are going to be actually updated soon.You can put up vue3-spline over anecdote or npm. spline-runtime is actually a dependence of vue3-spline and should be automatically put in when you install vue3-spline.If you are actually using npm:.npm set up vue3-spline@latest-- conserve.If you are actually using anecdote:.yarn include vue3-spline@latest.Generate a directory gotten in touch with plugins at the root of your venture.Make a file called Vue3Spline.client.ts inside the plugins listing.Incorporate the adhering to code to the Vue3Spline.client.ts data.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire a mistake along with TS, attempt usage( Vue3Spline, title: "Vue3Spline" ).This ought to enroll as a worldwide component that you can easily refer to as anywhere in your app under the tag.I would certainly highly recommend utilizing a moms and dad tag to make certain that the animation merely lots know the customer edge.
Github.