app').If you obtain an inaccuracy with TS, make an effort usage( Vue3Spline, name: "Vue3Spline" ).To specify global components for Volar type-checking you will certainly need to have to include:.// components.d.ts.state component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in layout.name cord (nonpayment: 'Vue3Spline') - established personalized element title.Conversely you can additionally import the component in your area.import Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily at that point utilize the part in your theme.
Nuxt 3.This is still speculative. Are going to be actually updated soon.You can put up vue3-spline over anecdote or even npm. spline-runtime is a dependence of vue3-spline and also need to be actually automatically put in when you install vue3-spline.If you are using npm:.npm put in vue3-spline@latest-- save.If you are actually using yarn:.yarn incorporate vue3-spline@latest.Produce a file phoned plugins at the root of your project.Generate a file named Vue3Spline.client.ts inside the plugins directory.Incorporate the adhering to code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy along with TS, make an effort usage( Vue3Spline, label: "Vue3Spline" ).This need to enroll as a worldwide component that you can easily refer to as throughout your application under the tag.I would certainly recommend utilizing a moms and dad tag to make sure that the computer animation simply loads with it the customer edge.
Github.