app').If you acquire a mistake along with TS, make an effort use( Vue3Spline, label: "Vue3Spline" ).To specify worldwide parts for Volar type-checking you are going to need to have to include:.// components.d.ts.announce element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to make use of:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in layout.label strand (default: 'Vue3Spline') - established custom-made element name.Additionally you can also import the component in your area.import Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may then utilize the element in your template.
Nuxt 3.This is still speculative. Are going to be actually improved soon.You can easily install vue3-spline over yarn or even npm. spline-runtime is an addiction of vue3-spline and ought to be immediately mounted when you put in vue3-spline.If you are utilizing npm:.npm mount vue3-spline@latest-- spare.If you are utilizing anecdote:.anecdote add vue3-spline@latest.Develop a folder gotten in touch with plugins at the root of your project.Develop a file called Vue3Spline.client.ts inside the plugins directory site.Include the adhering to code to the Vue3Spline.client.ts file.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).This ought to enroll as a global part that you may refer to as anywhere in your app under the tag.I would encourage making use of a moms and dad tag to make certain that the computer animation just tons in on the customer edge.
Github.