app').If you obtain a mistake along with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).To determine global elements for Volar type-checking you are going to require to include:.// components.d.ts.state module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to use:.app.use( Vue3Spline, name: 'SplineAnimation')// make use of in layout.label strand (default: 'Vue3Spline') - prepared custom-made component title.Conversely you can easily also import the element regionally.bring in Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can at that point make use of the element in your design template.
Nuxt 3.This is still speculative. Will certainly be upgraded very soon.You may mount vue3-spline over yarn or npm. spline-runtime is a dependence of vue3-spline and also must be automatically set up when you install vue3-spline.If you are actually using npm:.npm install vue3-spline@latest-- spare.If you are utilizing yarn:.yarn incorporate vue3-spline@latest.Produce a file phoned plugins at the origin of your task.Make a report called Vue3Spline.client.ts inside the plugins directory site.Add the observing code to the Vue3Spline.client.ts file.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy along with TS, attempt use( Vue3Spline, name: "Vue3Spline" ).This ought to sign up as a worldwide component that you can call anywhere in your app under the tag.I would certainly encourage using a moms and dad tag to ensure that the animation only loads know the customer edge.
Github.