app').If you acquire a mistake along with TS, attempt use( Vue3Spline, name: "Vue3Spline" ).To determine international components for Volar type-checking you are going to need to add:.// components.d.ts.proclaim element '@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')// make use of in layout.label string (default: 'Vue3Spline') - specified customized element name.Conversely you can easily additionally import the part locally.import Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily at that point utilize the part in your theme.
Nuxt 3.This is still experimental. Are going to be updated quickly.You can put up vue3-spline over anecdote or npm. spline-runtime is a dependence of vue3-spline as well as ought to be actually immediately installed when you mount vue3-spline.If you are using npm:.npm put up vue3-spline@latest-- save.If you are utilizing anecdote:.anecdote incorporate vue3-spline@latest.Make a file contacted plugins at the origin of your venture.Develop a file named Vue3Spline.client.ts inside the plugins directory site.Add the observing code to the Vue3Spline.client.ts report.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire a mistake with TS, try make use of( Vue3Spline, label: "Vue3Spline" ).This should enroll as a global component that you can easily refer to as throughout your application under the tag.I would advise using a parent tag to guarantee that the computer animation only loads in on the customer side.
Github.