app').If you get an inaccuracy along with TS, try make use of( Vue3Spline, title: "Vue3Spline" ).To describe worldwide parts for Volar type-checking you are going to need to add:.// components.d.ts.proclaim element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in template.name cord (nonpayment: 'Vue3Spline') - established customized component name.As an alternative you may likewise import the component regionally.import Vue3Spline coming from 'vue3-spline'.export default parts: Vue3Spline,.,.You can after that utilize the part in your theme.
Nuxt 3.This is actually still experimental. Are going to be actually updated very soon.You may install vue3-spline over yarn or npm. spline-runtime is actually a reliance of vue3-spline as well as should be automatically installed when you put up vue3-spline.If you are actually making use of npm:.npm mount vue3-spline@latest-- conserve.If you are actually using anecdote:.yarn add vue3-spline@latest.Produce a directory phoned plugins at the origin of your job.Create a report called Vue3Spline.client.ts inside the plugins directory.Add the following code to the Vue3Spline.client.ts report.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain a mistake along with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).This ought to enroll as a global element that you may name throughout your app under the tag.I would certainly encourage utilizing a parent tag to ensure that the animation merely bunches in on the client side.
Github.