app').If you acquire a mistake with TS, make an effort usage( Vue3Spline, title: "Vue3Spline" ).To define worldwide components for Volar type-checking you will need to have to include:.// components.d.ts.state element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in layout.name cord (nonpayment: 'Vue3Spline') - prepared personalized part label.Alternatively you can additionally import the part regionally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily at that point utilize the component in your template.
Nuxt 3.This is actually still experimental. Will be actually improved quickly.You may put up vue3-spline over anecdote or even npm. spline-runtime is a dependency of vue3-spline as well as must be immediately installed when you mount vue3-spline.If you are actually making use of npm:.npm mount vue3-spline@latest-- conserve.If you are using anecdote:.yarn add vue3-spline@latest.Create a file phoned plugins at the root of your job.Make a data called Vue3Spline.client.ts inside the plugins directory.Include the adhering to code to the Vue3Spline.client.ts documents.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an error along with TS, try make use of( Vue3Spline, title: "Vue3Spline" ).This need to register as a global component that you can call anywhere in your application under the tag.I will highly recommend using a parent tag to guarantee that the computer animation just tons with it the client edge.
Github.