app').If you receive a mistake with TS, attempt usage( Vue3Spline, name: "Vue3Spline" ).To specify international components for Volar type-checking you will certainly need to incorporate:.// components.d.ts.proclaim component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename part to use:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in template.title strand (default: 'Vue3Spline') - prepared personalized part label.As an alternative you can also import the component in your area.import Vue3Spline coming from 'vue3-spline'.export default parts: Vue3Spline,.,.You may then utilize the element in your layout.
Nuxt 3.This is actually still experimental. Will definitely be actually upgraded quickly.You may set up vue3-spline over anecdote or even npm. spline-runtime is a dependence of vue3-spline as well as need to be actually automatically set up when you install vue3-spline.If you are actually making use of npm:.npm mount vue3-spline@latest-- conserve.If you are actually making use of anecdote:.anecdote add vue3-spline@latest.Make a directory contacted plugins at the root of your job.Create a data named Vue3Spline.client.ts inside the plugins listing.Incorporate the adhering to code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an inaccuracy with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).This should register as an international component that you can name anywhere in your app under the tag.I would certainly encourage utilizing a parent tag to make certain that the computer animation only bunches know the client edge.
Github.