app').If you receive an error with TS, attempt use( Vue3Spline, label: "Vue3Spline" ).To determine global components for Volar type-checking you are going to require to add:.// components.d.ts.proclaim component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in theme.name string (nonpayment: 'Vue3Spline') - set personalized part label.As an alternative you may also import the element in your area.bring in Vue3Spline from 'vue3-spline'.export default components: Vue3Spline,.,.You may at that point use the component in your design template.
Nuxt 3.This is still experimental. Will be improved quickly.You can easily install vue3-spline over yarn or npm. spline-runtime is actually a reliance of vue3-spline as well as ought to be actually automatically put up when you set up vue3-spline.If you are actually making use of npm:.npm set up vue3-spline@latest-- conserve.If you are actually utilizing anecdote:.anecdote incorporate vue3-spline@latest.Produce a file gotten in touch with plugins at the root of your job.Generate a documents named Vue3Spline.client.ts inside the plugins directory site.Include the complying with code to the Vue3Spline.client.ts documents.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive a mistake along with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).This should enroll as a global component that you can name anywhere in your app under the tag.I would encourage utilizing a parent tag to make certain that the animation simply bunches in on the client edge.
Github.