app').If you get an inaccuracy along with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).To describe international elements for Volar type-checking you will certainly need to add:.// components.d.ts.announce component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to use:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in layout.name cord (nonpayment: 'Vue3Spline') - set custom component label.Conversely you may also import the part regionally.bring in Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can easily at that point make use of the element in your theme.
Nuxt 3.This is actually still experimental. Are going to be actually upgraded quickly.You can mount vue3-spline over yarn or npm. spline-runtime is actually a reliance of vue3-spline as well as must be actually immediately set up when you install vue3-spline.If you are actually using npm:.npm put in vue3-spline@latest-- save.If you are actually making use of anecdote:.yarn include vue3-spline@latest.Produce a file phoned plugins at the root of your venture.Develop a report called Vue3Spline.client.ts inside the plugins listing.Incorporate the following 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 a mistake along with TS, attempt usage( Vue3Spline, label: "Vue3Spline" ).This ought to enroll as a global component that you can refer to as anywhere in your application under the tag.I would encourage making use of a moms and dad tag to guarantee that the animation merely loads with it the customer side.
Github.