app').If you acquire an error along with TS, make an effort use( Vue3Spline, label: "Vue3Spline" ).To define worldwide components for Volar type-checking you are going to require to add:.// components.d.ts.declare element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename part to use:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in template.name cord (default: 'Vue3Spline') - set personalized component title.Conversely you can easily likewise import the element locally.import Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can at that point make use of the element in your design template.
Nuxt 3.This is actually still speculative. Will definitely be actually upgraded very soon.You may install vue3-spline over yarn or npm. spline-runtime is an addiction of vue3-spline as well as ought to be actually immediately put in when you set up vue3-spline.If you are using npm:.npm put in vue3-spline@latest-- spare.If you are actually utilizing anecdote:.anecdote incorporate vue3-spline@latest.Create a directory called plugins at the origin of your venture.Develop a file named Vue3Spline.client.ts inside the plugins directory.Incorporate the complying with code to the Vue3Spline.client.ts file.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire a mistake with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).This need to register as a global component that you can call throughout your application under the tag.I would suggest utilizing a moms and dad tag to guarantee that the animation simply loads in on the client side.
Github.