app').If you receive a mistake with TS, attempt make use of( Vue3Spline, name: "Vue3Spline" ).To describe international elements for Volar type-checking you are going to require to include:.// components.d.ts.proclaim component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in theme.label string (nonpayment: 'Vue3Spline') - set customized element title.As an alternative you may additionally import the part in your area.bring in Vue3Spline coming from 'vue3-spline'.export default components: Vue3Spline,.,.You can easily then utilize the part in your template.
Nuxt 3.This is actually still speculative. Will certainly be improved very soon.You can easily put in vue3-spline over anecdote or even npm. spline-runtime is actually a dependence of vue3-spline and also ought to be immediately put up when you install vue3-spline.If you are utilizing npm:.npm mount vue3-spline@latest-- conserve.If you are actually utilizing anecdote:.yarn incorporate vue3-spline@latest.Create a file gotten in touch with plugins at the root of your project.Develop a report named Vue3Spline.client.ts inside the plugins directory site.Include the observing code to the Vue3Spline.client.ts documents.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire a mistake with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).This ought to register as an international part that you may refer to as throughout your application under the tag.I will suggest utilizing a parent tag to ensure that the computer animation only loads with it the customer edge.
Github.