app').If you receive a mistake along with TS, make an effort usage( Vue3Spline, label: "Vue3Spline" ).To define global elements for Volar type-checking you will need to have to incorporate:.// components.d.ts.proclaim component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename part to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in theme.name strand (nonpayment: 'Vue3Spline') - prepared custom element name.As an alternative you can easily likewise import the part in your area.import Vue3Spline coming from 'vue3-spline'.export default parts: Vue3Spline,.,.You can easily after that use the part in your template.
Nuxt 3.This is still speculative. Will be actually upgraded quickly.You can easily put in vue3-spline over yarn or even npm. spline-runtime is actually a dependency of vue3-spline and need to be actually automatically set up when you put up vue3-spline.If you are using npm:.npm put up vue3-spline@latest-- conserve.If you are actually utilizing yarn:.yarn add vue3-spline@latest.Make a folder phoned plugins at the origin of your job.Produce a file named Vue3Spline.client.ts inside the plugins listing.Incorporate the complying with code to the Vue3Spline.client.ts file.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an error with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).This need to enroll as a worldwide element that you can name throughout your app under the tag.I would recommend using a parent tag to make sure that the animation only lots in on the customer edge.
Github.