app').If you obtain an inaccuracy with TS, make an effort usage( Vue3Spline, title: "Vue3Spline" ).To determine global components for Volar type-checking you will definitely require to include:.// components.d.ts.announce module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in design template.label cord (nonpayment: 'Vue3Spline') - prepared personalized element title.Conversely you can likewise import the component in your area.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily then use the part in your theme.
Nuxt 3.This is actually still speculative. Are going to be actually updated quickly.You can easily mount vue3-spline over anecdote or even npm. spline-runtime is actually a dependency of vue3-spline and also need to be actually immediately installed when you install vue3-spline.If you are utilizing npm:.npm put up vue3-spline@latest-- save.If you are using yarn:.yarn add vue3-spline@latest.Make a directory phoned plugins at the root of your venture.Develop a report named Vue3Spline.client.ts inside the plugins directory site.Include the complying with code to the Vue3Spline.client.ts data.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an inaccuracy along with TS, make an effort usage( Vue3Spline, label: "Vue3Spline" ).This should register as an international part that you can refer to as throughout your app under the tag.I would certainly advise making use of a moms and dad tag to make sure that the computer animation simply loads know the client edge.
Github.