app').If you acquire a mistake along with TS, make an effort usage( Vue3Spline, label: "Vue3Spline" ).To specify international components for Volar type-checking you are going to need to have to include:.// components.d.ts.proclaim element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to use:.app.use( Vue3Spline, label: 'SplineAnimation')// use in layout.label strand (default: 'Vue3Spline') - set custom component title.As an alternative you can easily also import the component locally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily after that use the component in your theme.
Nuxt 3.This is actually still speculative. Are going to be actually improved soon.You can easily put up vue3-spline over yarn or npm. spline-runtime is a dependence of vue3-spline and ought to be actually automatically put up when you put in vue3-spline.If you are utilizing npm:.npm mount vue3-spline@latest-- save.If you are making use of anecdote:.yarn add vue3-spline@latest.Develop a file phoned plugins at the root of your task.Create a documents called Vue3Spline.client.ts inside the plugins directory.Incorporate the complying with code to the Vue3Spline.client.ts report.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an error along with TS, try use( Vue3Spline, name: "Vue3Spline" ).This must register as a worldwide element that you can easily name anywhere in your app under the tag.I will encourage utilizing a moms and dad tag to make certain that the computer animation only tons know the client side.
Github.