app').If you receive an inaccuracy with TS, attempt usage( Vue3Spline, title: "Vue3Spline" ).To define worldwide elements for Volar type-checking you will need to have to incorporate:.// components.d.ts.declare component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to use:.app.use( Vue3Spline, title: 'SplineAnimation')// use in theme.name string (default: 'Vue3Spline') - set custom element name.Additionally you can easily additionally import the element in your area.bring in Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can easily at that point make use of the element in your layout.
Nuxt 3.This is still experimental. Are going to be updated quickly.You may put in vue3-spline over yarn or npm. spline-runtime is actually a reliance of vue3-spline and need to be immediately mounted when you set up vue3-spline.If you are actually utilizing npm:.npm mount vue3-spline@latest-- spare.If you are using anecdote:.yarn include vue3-spline@latest.Develop a file called plugins at the root of your job.Produce a report named Vue3Spline.client.ts inside the plugins directory site.Incorporate the observing code to the Vue3Spline.client.ts data.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake with TS, make an effort usage( Vue3Spline, label: "Vue3Spline" ).This should enroll as a global part that you may call anywhere in your application under the tag.I would certainly highly recommend making use of a moms and dad tag to ensure that the animation merely lots in on the customer edge.
Github.