app').If you receive a mistake along with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).To specify global components for Volar type-checking you will certainly require to include:.// components.d.ts.announce module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to make use of:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in layout.label cord (nonpayment: 'Vue3Spline') - specified personalized component title.Additionally you may also import the part locally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You may after that use the component in your theme.
Nuxt 3.This is still experimental. Are going to be improved very soon.You can put up vue3-spline over anecdote or npm. spline-runtime is actually an addiction of vue3-spline and also must be actually automatically put up when you install vue3-spline.If you are actually using npm:.npm put up vue3-spline@latest-- save.If you are using anecdote:.anecdote incorporate vue3-spline@latest.Produce a directory called plugins at the origin of your project.Create a file called Vue3Spline.client.ts inside the plugins directory site.Incorporate the observing code to the Vue3Spline.client.ts report.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy with TS, make an effort make use of( Vue3Spline, title: "Vue3Spline" ).This ought to enroll as a global element that you can easily refer to as throughout your app under the tag.I would certainly suggest making use of a moms and dad tag to make sure that the animation simply bunches know the customer edge.
Github.