app').If you receive an error along with TS, try usage( Vue3Spline, name: "Vue3Spline" ).To define international components for Volar type-checking you will definitely require to add:.// components.d.ts.declare component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to use:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in design template.label cord (nonpayment: 'Vue3Spline') - established custom element title.Additionally you may additionally import the part locally.import Vue3Spline from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You may then use the element in your theme.
Nuxt 3.This is actually still experimental. Will definitely be actually improved very soon.You can install vue3-spline over yarn or npm. spline-runtime is a dependency of vue3-spline as well as need to be actually instantly set up when you put up vue3-spline.If you are utilizing npm:.npm mount vue3-spline@latest-- save.If you are actually making use of yarn:.yarn incorporate vue3-spline@latest.Make a folder contacted plugins at the root of your task.Generate a file called Vue3Spline.client.ts inside the plugins directory.Include the complying with code to the Vue3Spline.client.ts data.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire a mistake along with TS, try usage( Vue3Spline, name: "Vue3Spline" ).This need to register as an international element that you may call throughout your app under the tag.I would advise utilizing a moms and dad tag to ensure that the computer animation just lots know the client side.
Github.