app').If you receive a mistake with TS, try make use of( Vue3Spline, label: "Vue3Spline" ).To describe worldwide elements for Volar type-checking you will certainly need to have to incorporate:.// components.d.ts.state module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// use in template.label string (default: 'Vue3Spline') - established custom component label.Alternatively you can easily additionally import the part regionally.import Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can easily at that point utilize the element in your theme.
Nuxt 3.This is still experimental. Are going to be actually upgraded very soon.You may mount vue3-spline over anecdote or even npm. spline-runtime is an addiction of vue3-spline and also ought to be automatically set up when you put up vue3-spline.If you are utilizing npm:.npm mount vue3-spline@latest-- conserve.If you are utilizing anecdote:.yarn add vue3-spline@latest.Generate a folder called plugins at the root of your job.Make a data named Vue3Spline.client.ts inside the plugins listing.Incorporate the following code to the Vue3Spline.client.ts report.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake with TS, make an effort make use of( Vue3Spline, name: "Vue3Spline" ).This should enroll as an international component that you may name anywhere in your application under the tag.I would encourage making use of a moms and dad tag to make certain that the computer animation just tons with it the customer side.
Github.