app').If you obtain a mistake with TS, make an effort usage( Vue3Spline, title: "Vue3Spline" ).To specify global parts for Volar type-checking you will definitely need to have to include:.// components.d.ts.proclaim element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in layout.title cord (nonpayment: 'Vue3Spline') - specified custom element name.Alternatively you can likewise import the element locally.import Vue3Spline coming from 'vue3-spline'.export default parts: Vue3Spline,.,.You may after that utilize the element in your theme.
Nuxt 3.This is still speculative. Are going to be upgraded very soon.You can easily install vue3-spline over anecdote or even npm. spline-runtime is a reliance of vue3-spline and need to be immediately put in when you put in vue3-spline.If you are using npm:.npm set up vue3-spline@latest-- spare.If you are utilizing yarn:.yarn include vue3-spline@latest.Generate a file phoned plugins at the origin of your venture.Create a file named Vue3Spline.client.ts inside the plugins listing.Add the observing code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake with TS, attempt use( Vue3Spline, label: "Vue3Spline" ).This must register as a worldwide part that you can call anywhere in your app under the tag.I would recommend utilizing a parent tag to guarantee that the animation simply lots with it the client edge.
Github.