app').If you receive an inaccuracy with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).To determine global components for Volar type-checking you will require to incorporate:.// components.d.ts.proclaim element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename part to make use of:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in theme.label string (nonpayment: 'Vue3Spline') - prepared custom part title.Additionally you can likewise import the part in your area.import Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can then use the component in your template.
Nuxt 3.This is actually still speculative. Will definitely be actually improved very soon.You can put up vue3-spline over yarn or even npm. spline-runtime is actually a reliance of vue3-spline and also need to be immediately put in when you install vue3-spline.If you are actually utilizing npm:.npm install vue3-spline@latest-- conserve.If you are actually using yarn:.yarn incorporate vue3-spline@latest.Make a folder phoned plugins at the origin of your project.Generate a report called Vue3Spline.client.ts inside the plugins directory site.Add the observing code to the Vue3Spline.client.ts report.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain a mistake along with TS, attempt usage( Vue3Spline, label: "Vue3Spline" ).This must register as an international element that you can name anywhere in your application under the tag.I would suggest utilizing a moms and dad tag to ensure that the animation merely bunches know the client edge.
Github.