app').If you receive a mistake along with TS, try use( Vue3Spline, name: "Vue3Spline" ).To define worldwide elements for Volar type-checking you will require to include:.// components.d.ts.state element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to utilize:.app.use( Vue3Spline, label: 'SplineAnimation')// use in theme.name string (default: 'Vue3Spline') - specified custom-made component title.As an alternative you can easily additionally import the element locally.import Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You may at that point utilize the part in your template.
Nuxt 3.This is actually still experimental. Are going to be upgraded very soon.You can easily set up vue3-spline over anecdote or even npm. spline-runtime is a dependency of vue3-spline as well as must be automatically put in when you mount vue3-spline.If you are using npm:.npm set up vue3-spline@latest-- spare.If you are using anecdote:.yarn include vue3-spline@latest.Make a directory contacted plugins at the root of your venture.Create a documents named Vue3Spline.client.ts inside the plugins directory.Include the complying with code to the Vue3Spline.client.ts report.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy along with TS, attempt usage( Vue3Spline, name: "Vue3Spline" ).This should enroll as an international component that you can easily refer to as anywhere in your app under the tag.I would certainly suggest using a moms and dad tag to guarantee that the animation only bunches with it the customer side.
Github.