app').If you receive an error with TS, make an effort make use of( Vue3Spline, title: "Vue3Spline" ).To define worldwide components for Volar type-checking you will definitely need to incorporate:.// components.d.ts.declare module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename part to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// use in layout.title cord (nonpayment: 'Vue3Spline') - prepared customized component title.Additionally you can easily also import the component in your area.bring in Vue3Spline coming from 'vue3-spline'.export default components: Vue3Spline,.,.You can easily after that utilize the component in your design template.
Nuxt 3.This is actually still speculative. Will be updated very soon.You can easily install vue3-spline over yarn or even npm. spline-runtime is actually an addiction of vue3-spline and also must be actually automatically put in when you set up vue3-spline.If you are actually making use of npm:.npm put up vue3-spline@latest-- conserve.If you are using anecdote:.yarn include vue3-spline@latest.Produce a directory phoned plugins at the root of your venture.Develop a file called Vue3Spline.client.ts inside the plugins directory site.Incorporate the observing code to the Vue3Spline.client.ts file.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy with TS, attempt usage( Vue3Spline, name: "Vue3Spline" ).This should enroll as a global element that you may call throughout your app under the tag.I will recommend making use of a parent tag to make certain that the animation only loads know the client edge.
Github.