app').If you receive an error along with TS, try usage( Vue3Spline, name: "Vue3Spline" ).To determine worldwide components for Volar type-checking you will need to have to incorporate:.// components.d.ts.proclaim component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to make use of:.app.use( Vue3Spline, label: 'SplineAnimation')// use in theme.name strand (nonpayment: 'Vue3Spline') - established customized component title.As an alternative you can easily additionally import the part locally.import Vue3Spline from 'vue3-spline'.export default parts: Vue3Spline,.,.You can easily at that point make use of the part in your design template.
Nuxt 3.This is actually still experimental. Will definitely be updated quickly.You can install vue3-spline over anecdote or even npm. spline-runtime is actually a dependence of vue3-spline and should be immediately mounted when you mount vue3-spline.If you are utilizing npm:.npm put up vue3-spline@latest-- conserve.If you are using anecdote:.yarn add vue3-spline@latest.Develop a directory phoned plugins at the origin of your task.Produce a file called Vue3Spline.client.ts inside the plugins listing.Include the adhering to code to the Vue3Spline.client.ts data.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an error with TS, make an effort make use of( Vue3Spline, label: "Vue3Spline" ).This ought to enroll as a global component that you can call throughout your application under the tag.I would recommend utilizing a parent tag to guarantee that the animation merely tons in on the client edge.
Github.