app').If you get an inaccuracy with TS, try make use of( Vue3Spline, label: "Vue3Spline" ).To determine global parts for Volar type-checking you will definitely need to have to include:.// components.d.ts.declare component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename part to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in layout.name strand (nonpayment: 'Vue3Spline') - established custom-made part label.As an alternative you can easily also import the element regionally.bring in Vue3Spline from 'vue3-spline'.export default parts: Vue3Spline,.,.You can easily after that use the component in your layout.
Nuxt 3.This is still speculative. Will be upgraded quickly.You can easily set up vue3-spline over yarn or npm. spline-runtime is a dependency of vue3-spline as well as need to be immediately put in when you install vue3-spline.If you are actually making use of npm:.npm set up vue3-spline@latest-- spare.If you are utilizing yarn:.yarn add vue3-spline@latest.Generate a file phoned plugins at the root of your job.Make a data named Vue3Spline.client.ts inside the plugins directory.Include the adhering to code to the Vue3Spline.client.ts documents.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain a mistake with TS, attempt make use of( Vue3Spline, name: "Vue3Spline" ).This must sign up as a global element that you can call anywhere in your app under the tag.I would certainly encourage using a moms and dad tag to ensure that the animation just tons know the client edge.
Github.