app').If you receive an inaccuracy with TS, try use( Vue3Spline, name: "Vue3Spline" ).To describe worldwide elements for Volar type-checking you will certainly need to have to add:.// components.d.ts.state element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to use:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in template.label cord (nonpayment: 'Vue3Spline') - prepared custom component label.Conversely you can likewise import the component locally.bring in Vue3Spline coming from 'vue3-spline'.export default parts: Vue3Spline,.,.You can then use the part in your design template.
Nuxt 3.This is still speculative. Are going to be actually upgraded very soon.You may set up vue3-spline over anecdote or npm. spline-runtime is a dependency of vue3-spline and ought to be instantly installed when you put in vue3-spline.If you are actually making use of npm:.npm install vue3-spline@latest-- conserve.If you are actually making use of yarn:.yarn include vue3-spline@latest.Generate a directory called plugins at the origin of your task.Produce a file named Vue3Spline.client.ts inside the plugins directory site.Add 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 receive an inaccuracy along with TS, attempt usage( Vue3Spline, label: "Vue3Spline" ).This ought to enroll as a global component that you may name anywhere in your application under the tag.I will recommend making use of a parent tag to make sure that the animation just loads know the customer edge.
Github.