app').If you acquire an inaccuracy with TS, make an effort use( Vue3Spline, label: "Vue3Spline" ).To define global elements for Volar type-checking you will need to include:.// components.d.ts.proclaim module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// use in layout.label cord (nonpayment: 'Vue3Spline') - specified customized part title.Additionally you can easily also import the part locally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You can easily at that point use the component in your design template.
Nuxt 3.This is still experimental. Are going to be actually improved quickly.You can easily mount vue3-spline over anecdote or even npm. spline-runtime is a reliance of vue3-spline and must be actually instantly put up when you install vue3-spline.If you are actually utilizing npm:.npm put in vue3-spline@latest-- conserve.If you are making use of anecdote:.anecdote add vue3-spline@latest.Develop a folder called plugins at the root of your task.Generate a file named Vue3Spline.client.ts inside the plugins listing.Add the adhering to code to the Vue3Spline.client.ts documents.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get an error along with TS, attempt make use of( Vue3Spline, name: "Vue3Spline" ).This need to register as a worldwide part that you can easily refer to as anywhere in your application under the tag.I would certainly recommend making use of a parent tag to make certain that the animation just tons know the customer edge.
Github.