app').If you receive a mistake along with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).To describe international parts for Volar type-checking you are going to require to add:.// components.d.ts.state component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to make use of:.app.use( Vue3Spline, label: 'SplineAnimation')// usage in theme.title cord (default: 'Vue3Spline') - established custom-made element title.Alternatively you can additionally import the component locally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You may at that point make use of the element in your template.
Nuxt 3.This is still speculative. Will be actually upgraded very soon.You can easily put up vue3-spline over anecdote or npm. spline-runtime is a reliance of vue3-spline as well as ought to be instantly installed when you put in vue3-spline.If you are using npm:.npm mount vue3-spline@latest-- spare.If you are actually making use of anecdote:.anecdote include vue3-spline@latest.Develop a file contacted plugins at the root of your job.Create a data called Vue3Spline.client.ts inside the plugins directory.Add the complying with code to the Vue3Spline.client.ts file.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire a mistake along with TS, make an effort make use of( Vue3Spline, label: "Vue3Spline" ).This need to enroll as an international component that you can call throughout your application under the tag.I would encourage using a moms and dad tag to make certain that the animation merely lots know the client side.
Github.