app').If you get an error along with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).To define global parts for Volar type-checking you will certainly need to have to include:.// components.d.ts.announce component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in theme.label cord (default: 'Vue3Spline') - prepared customized element title.Alternatively you can also import the element in your area.import Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You may then make use of the part in your design template.
Nuxt 3.This is still speculative. Are going to be improved soon.You can easily put up vue3-spline over anecdote or even npm. spline-runtime is a reliance of vue3-spline as well as must be actually immediately set up when you put up vue3-spline.If you are making use of npm:.npm mount vue3-spline@latest-- spare.If you are actually making use of yarn:.anecdote add vue3-spline@latest.Generate a file phoned plugins at the root of your task.Produce a file called Vue3Spline.client.ts inside the plugins listing.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 obtain an inaccuracy along with TS, attempt usage( Vue3Spline, title: "Vue3Spline" ).This must register as a global element that you may refer to as anywhere in your application under the tag.I will advise making use of a moms and dad tag to guarantee that the computer animation simply lots in on the customer side.
Github.