app').If you receive an error along with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).To determine global components for Volar type-checking you are going to need to add:.// components.d.ts.declare element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename part to make use of:.app.use( Vue3Spline, label: 'SplineAnimation')// use in theme.title string (nonpayment: 'Vue3Spline') - established customized element title.Conversely you can also import the element regionally.bring in Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may then make use of the part in your theme.
Nuxt 3.This is still speculative. Are going to be actually updated soon.You may install vue3-spline over yarn or npm. spline-runtime is actually a dependency of vue3-spline and must be actually automatically installed when you set up vue3-spline.If you are utilizing npm:.npm put in vue3-spline@latest-- conserve.If you are utilizing yarn:.anecdote include vue3-spline@latest.Generate a directory contacted plugins at the origin of your task.Generate a data called Vue3Spline.client.ts inside the plugins directory site.Add the complying with code to the Vue3Spline.client.ts file.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy with TS, make an effort make use of( Vue3Spline, label: "Vue3Spline" ).This need to sign up as a worldwide component that you may name throughout your app under the tag.I would suggest utilizing a moms and dad tag to make sure that the animation just bunches with it the customer edge.
Github.