app').If you get a mistake along with TS, try usage( Vue3Spline, name: "Vue3Spline" ).To determine international parts for Volar type-checking you are going to need to have to include:.// components.d.ts.announce element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to use:.app.use( Vue3Spline, name: 'SplineAnimation')// use in theme.name string (nonpayment: 'Vue3Spline') - established customized element title.Alternatively you can easily also import the element in your area.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may at that point make use of the part in your template.
Nuxt 3.This is actually still experimental. Will certainly be upgraded soon.You can easily put up vue3-spline over anecdote or npm. spline-runtime is a dependency of vue3-spline as well as should be actually immediately set up when you put up vue3-spline.If you are using npm:.npm install vue3-spline@latest-- spare.If you are actually making use of anecdote:.anecdote incorporate vue3-spline@latest.Generate a file called plugins at the origin of your job.Generate a report named Vue3Spline.client.ts inside the plugins directory.Include the following code to the Vue3Spline.client.ts report.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an error with TS, try usage( Vue3Spline, label: "Vue3Spline" ).This should register as an international component that you can easily refer to as throughout your application under the tag.I would certainly recommend utilizing a moms and dad tag to guarantee that the computer animation only loads know the client side.
Github.