app').If you get an inaccuracy along with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).To define international elements for Volar type-checking you will need to incorporate:.// components.d.ts.declare component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in layout.title cord (default: 'Vue3Spline') - set custom part label.Additionally you can easily likewise import the part locally.import Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can then use the component in your design template.
Nuxt 3.This is actually still speculative. Will definitely be actually improved quickly.You can mount vue3-spline over anecdote or npm. spline-runtime is a dependence of vue3-spline and also need to be actually automatically installed when you install vue3-spline.If you are actually utilizing npm:.npm mount vue3-spline@latest-- conserve.If you are actually using yarn:.anecdote include vue3-spline@latest.Create a folder contacted plugins at the root of your job.Develop a file named Vue3Spline.client.ts inside the plugins listing.Add the observing code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an inaccuracy with TS, try use( Vue3Spline, label: "Vue3Spline" ).This ought to sign up as an international component that you can easily name throughout your application under the tag.I would suggest utilizing a moms and dad tag to make sure that the computer animation only tons know the client side.
Github.