app').If you receive an error along with TS, attempt usage( Vue3Spline, name: "Vue3Spline" ).To define international elements for Volar type-checking you are going to require to incorporate:.// components.d.ts.proclaim component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to make use of:.app.use( Vue3Spline, name: 'SplineAnimation')// use in template.label string (nonpayment: 'Vue3Spline') - set custom-made component label.Alternatively you can additionally import the part in your area.bring in Vue3Spline coming from 'vue3-spline'.export default elements: Vue3Spline,.,.You can easily after that make use of the component in your layout.
Nuxt 3.This is actually still speculative. Will definitely be actually updated quickly.You can put up vue3-spline over yarn or even npm. spline-runtime is actually a dependence of vue3-spline and need to be automatically mounted when you install vue3-spline.If you are utilizing npm:.npm mount vue3-spline@latest-- spare.If you are actually utilizing anecdote:.anecdote include vue3-spline@latest.Create a folder contacted plugins at the origin of your project.Generate a report named Vue3Spline.client.ts inside the plugins directory.Incorporate the following code to the Vue3Spline.client.ts file.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy along with TS, try usage( Vue3Spline, name: "Vue3Spline" ).This must enroll as an international component that you can easily call throughout your application under the tag.I will highly recommend using a moms and dad tag to make sure that the animation simply lots in on the client edge.
Github.