app').If you get an error with TS, try usage( Vue3Spline, label: "Vue3Spline" ).To determine global parts for Volar type-checking you are going to 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 component to use:.app.use( Vue3Spline, name: 'SplineAnimation')// make use of in template.title string (default: 'Vue3Spline') - specified customized part name.As an alternative you may also import the element in your area.bring in Vue3Spline coming from 'vue3-spline'.export default elements: Vue3Spline,.,.You may at that point utilize the element in your layout.
Nuxt 3.This is still experimental. Will definitely be updated quickly.You can set up vue3-spline over yarn or npm. spline-runtime is actually an addiction of vue3-spline and also ought to be instantly installed when you put in vue3-spline.If you are actually making use of npm:.npm install vue3-spline@latest-- spare.If you are using anecdote:.yarn incorporate vue3-spline@latest.Produce a directory called plugins at the origin of your job.Produce a file called Vue3Spline.client.ts inside the plugins directory site.Include the observing code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive a mistake with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).This must sign up as an international component that you can refer to as anywhere in your application under the tag.I would suggest making use of a parent tag to make sure that the computer animation merely loads in on the client side.
Github.