app').If you obtain an error with TS, attempt make use of( Vue3Spline, name: "Vue3Spline" ).To determine international elements for Volar type-checking you will certainly require to incorporate:.// components.d.ts.announce module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to use:.app.use( Vue3Spline, name: 'SplineAnimation')// make use of in design template.title cord (default: 'Vue3Spline') - set custom-made part title.Alternatively you can likewise import the part regionally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You may after that utilize the component in your layout.
Nuxt 3.This is still speculative. Are going to be actually updated quickly.You can mount vue3-spline over yarn or npm. spline-runtime is actually a dependency of vue3-spline and also should be automatically put up when you put up vue3-spline.If you are making use of npm:.npm mount vue3-spline@latest-- spare.If you are actually using yarn:.anecdote incorporate vue3-spline@latest.Produce a file phoned plugins at the origin of your task.Produce a report called Vue3Spline.client.ts inside the plugins directory.Include the adhering to code to the Vue3Spline.client.ts documents.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy along with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).This must enroll as a worldwide component that you can call anywhere in your application under the tag.I would certainly advise using a moms and dad tag to make sure that the computer animation only bunches with it the client edge.
Github.