app').If you acquire an inaccuracy along with TS, attempt use( Vue3Spline, label: "Vue3Spline" ).To determine worldwide parts for Volar type-checking you will certainly need to include:.// components.d.ts.proclaim module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename component to use:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in design template.label strand (default: 'Vue3Spline') - set custom-made element title.Additionally you may likewise import the part in your area.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may after that utilize the element in your design template.
Nuxt 3.This is still speculative. Will certainly be actually upgraded very soon.You can put in vue3-spline over anecdote or even npm. spline-runtime is actually a dependency of vue3-spline and need to be actually immediately installed when you set up vue3-spline.If you are utilizing npm:.npm mount vue3-spline@latest-- conserve.If you are actually using yarn:.anecdote add vue3-spline@latest.Make a directory gotten in touch with plugins at the root of your venture.Generate a report called Vue3Spline.client.ts inside the plugins listing.Add the observing code to the Vue3Spline.client.ts file.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).This need to sign up as a global part that you may refer to as throughout your application under the tag.I would highly recommend making use of a parent tag to ensure that the computer animation merely tons with it the client edge.
Github.