app').If you obtain an error along with TS, try usage( Vue3Spline, name: "Vue3Spline" ).To specify worldwide components for Volar type-checking you will certainly need 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 to have rename element to make use of:.app.use( Vue3Spline, name: 'SplineAnimation')// use in theme.name strand (nonpayment: 'Vue3Spline') - set personalized component label.As an alternative you may likewise import the element in your area.bring in Vue3Spline from 'vue3-spline'.export default components: Vue3Spline,.,.You may after that utilize the element in your template.
Nuxt 3.This is actually still experimental. Will definitely be updated quickly.You can mount vue3-spline over yarn or even npm. spline-runtime is actually a dependence of vue3-spline and also need to be instantly put in when you put up vue3-spline.If you are actually using npm:.npm put in vue3-spline@latest-- conserve.If you are actually utilizing anecdote:.yarn include vue3-spline@latest.Create a folder called plugins at the root of your task.Develop a file called Vue3Spline.client.ts inside the plugins directory site.Incorporate the adhering to code to the Vue3Spline.client.ts file.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire a mistake with TS, try make use of( Vue3Spline, title: "Vue3Spline" ).This ought to sign up as a worldwide element that you may call throughout your application under the tag.I will advise utilizing a moms and dad tag to make certain that the animation merely loads know the customer edge.
Github.