app').If you get an error with TS, make an effort make use of( Vue3Spline, label: "Vue3Spline" ).To specify international elements for Volar type-checking you will definitely require to add:.// components.d.ts.proclaim element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to utilize:.app.use( Vue3Spline, label: 'SplineAnimation')// use in layout.title strand (default: 'Vue3Spline') - established custom-made element name.Conversely you can easily additionally import the component in your area.bring in Vue3Spline coming from 'vue3-spline'.export default parts: Vue3Spline,.,.You may at that point utilize the component in your theme.
Nuxt 3.This is still experimental. Are going to be updated very soon.You may mount vue3-spline over yarn or even npm. spline-runtime is an addiction of vue3-spline as well as should be immediately mounted when you set up vue3-spline.If you are actually making use of npm:.npm install vue3-spline@latest-- spare.If you are actually making use of anecdote:.yarn include vue3-spline@latest.Develop a folder called plugins at the root of your project.Develop a documents called Vue3Spline.client.ts inside the plugins listing.Include the observing code to the Vue3Spline.client.ts report.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain a mistake with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).This should register as a global element that you may call anywhere in your application under the tag.I will advise utilizing a parent tag to ensure that the computer animation merely lots with it the client side.
Github.