app').If you receive an inaccuracy with TS, attempt usage( Vue3Spline, label: "Vue3Spline" ).To determine worldwide elements for Volar type-checking you are going to need 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 required rename element to use:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in template.label strand (nonpayment: 'Vue3Spline') - specified customized component title.Additionally you may also import the component regionally.import Vue3Spline coming from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You may after that use the component in your design template.
Nuxt 3.This is actually still speculative. Will definitely be actually improved soon.You can install vue3-spline over anecdote or npm. spline-runtime is actually an addiction of vue3-spline as well as should be instantly set up when you mount vue3-spline.If you are making use of npm:.npm put in vue3-spline@latest-- spare.If you are making use of yarn:.anecdote add vue3-spline@latest.Create a directory contacted plugins at the origin of your venture.Create a file named Vue3Spline.client.ts inside the plugins directory.Include the following code to the Vue3Spline.client.ts documents.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake along with TS, try usage( Vue3Spline, label: "Vue3Spline" ).This must register as an international part that you may call anywhere in your app under the tag.I would recommend making use of a moms and dad tag to make certain that the animation merely tons know the client side.
Github.