app').If you get a mistake along with TS, try usage( Vue3Spline, name: "Vue3Spline" ).To specify worldwide components for Volar type-checking you will certainly need to add:.// components.d.ts.proclaim element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// use in theme.name string (nonpayment: 'Vue3Spline') - set custom part name.Additionally you can easily likewise import the component in your area.import Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You may at that point make use of the element in your theme.
Nuxt 3.This is still speculative. Are going to be improved soon.You may put in vue3-spline over yarn or npm. spline-runtime is an addiction of vue3-spline and need to be actually instantly set up when you put up vue3-spline.If you are utilizing npm:.npm set up vue3-spline@latest-- spare.If you are actually utilizing anecdote:.anecdote add vue3-spline@latest.Generate a folder called plugins at the root of your job.Produce a data named Vue3Spline.client.ts inside the plugins directory.Add the adhering to code to the Vue3Spline.client.ts file.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake with TS, attempt usage( Vue3Spline, label: "Vue3Spline" ).This should sign up as a worldwide component that you may name anywhere in your application under the tag.I would suggest using a moms and dad tag to make sure that the animation simply lots know the client edge.
Github.