app').If you acquire an inaccuracy along with TS, try use( Vue3Spline, label: "Vue3Spline" ).To specify global parts for Volar type-checking you will definitely need to have to add:.// components.d.ts.state component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in design template.label cord (default: 'Vue3Spline') - specified personalized part label.As an alternative you may likewise import the part regionally.bring in Vue3Spline from 'vue3-spline'.export default parts: Vue3Spline,.,.You can easily at that point use the element in your design template.
Nuxt 3.This is actually still experimental. Will certainly be actually upgraded soon.You can easily install vue3-spline over yarn or npm. spline-runtime is a dependency of vue3-spline as well as ought to be actually automatically mounted when you set up vue3-spline.If you are actually utilizing npm:.npm set up vue3-spline@latest-- spare.If you are utilizing yarn:.yarn include vue3-spline@latest.Develop a folder contacted plugins at the root of your venture.Develop a file named Vue3Spline.client.ts inside the plugins directory.Add the complying with code to the Vue3Spline.client.ts documents.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain a mistake with TS, try make use of( Vue3Spline, title: "Vue3Spline" ).This ought to enroll as a global component that you may name throughout your application under the tag.I would certainly advise using a parent tag to make sure that the computer animation simply tons with it the client side.
Github.