app').If you get a mistake along with TS, make an effort make use of( Vue3Spline, title: "Vue3Spline" ).To determine global parts for Volar type-checking you are going to need to include:.// components.d.ts.announce element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// use in design template.label strand (nonpayment: 'Vue3Spline') - specified custom-made element label.Additionally you can easily additionally import the element in your area.import Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may then use the component in your theme.
Nuxt 3.This is still speculative. Will certainly be upgraded quickly.You may put up vue3-spline over anecdote or npm. spline-runtime is actually a dependence of vue3-spline and need to be actually automatically set up when you set up vue3-spline.If you are using npm:.npm put up vue3-spline@latest-- spare.If you are using anecdote:.anecdote add vue3-spline@latest.Develop a directory contacted plugins at the origin of your venture.Create a data named Vue3Spline.client.ts inside the plugins listing.Incorporate the observing code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive a mistake along with TS, attempt usage( Vue3Spline, title: "Vue3Spline" ).This ought to register as an international element that you can easily refer to as anywhere in your app under the tag.I will suggest utilizing a parent tag to make certain that the animation merely tons in on the client edge.
Github.