app').If you acquire an error along with TS, make an effort usage( Vue3Spline, name: "Vue3Spline" ).To define international parts for Volar type-checking you will certainly 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 needed rename part to use:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in design template.title strand (default: 'Vue3Spline') - established custom part name.Conversely you can additionally import the component in your area.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You can easily then utilize the element in your layout.
Nuxt 3.This is still speculative. Will certainly be updated very soon.You can set up vue3-spline over anecdote or even npm. spline-runtime is actually a dependency of vue3-spline and also need to be instantly installed when you set up vue3-spline.If you are actually making use of npm:.npm install vue3-spline@latest-- save.If you are actually utilizing yarn:.anecdote incorporate vue3-spline@latest.Develop a folder called plugins at the origin of your task.Generate a data called Vue3Spline.client.ts inside the plugins directory.Include 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 with TS, make an effort make use of( Vue3Spline, title: "Vue3Spline" ).This must register as an international element that you can easily refer to as throughout your application under the tag.I would certainly recommend using a moms and dad tag to guarantee that the computer animation just lots in on the customer side.
Github.