app').If you acquire an inaccuracy with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).To specify worldwide elements for Volar type-checking you will require to include:.// components.d.ts.state module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// use in layout.label cord (nonpayment: 'Vue3Spline') - prepared customized part label.As an alternative you may also import the element locally.bring in Vue3Spline coming from 'vue3-spline'.export default elements: Vue3Spline,.,.You may after that utilize the component in your template.
Nuxt 3.This is actually still experimental. Are going to be improved soon.You may set up vue3-spline over anecdote or npm. spline-runtime is actually a dependency of vue3-spline and also must be immediately set up when you put in vue3-spline.If you are making use of npm:.npm install vue3-spline@latest-- conserve.If you are using yarn:.yarn incorporate vue3-spline@latest.Generate a directory called plugins at the root of your project.Create a data called Vue3Spline.client.ts inside the plugins listing.Add the complying with code to the Vue3Spline.client.ts data.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy along with TS, attempt use( Vue3Spline, name: "Vue3Spline" ).This should sign up as a worldwide part that you can name throughout your app under the tag.I would certainly encourage utilizing a parent tag to make certain that the animation only tons in on the customer side.
Github.