app').If you acquire an error along with TS, make an effort use( Vue3Spline, label: "Vue3Spline" ).To specify worldwide elements for Volar type-checking you will certainly require to incorporate:.// components.d.ts.announce component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to use:.app.use( Vue3Spline, label: 'SplineAnimation')// use in layout.title strand (default: 'Vue3Spline') - specified personalized component name.Alternatively you can likewise import the part locally.import Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may then utilize the component in your template.
Nuxt 3.This is actually still experimental. Will certainly be actually updated quickly.You can set up vue3-spline over yarn or npm. spline-runtime is a reliance of vue3-spline and also need to be actually immediately put up when you put up vue3-spline.If you are making use of npm:.npm put up vue3-spline@latest-- spare.If you are using yarn:.yarn incorporate vue3-spline@latest.Generate a directory contacted plugins at the origin of your project.Produce a file called Vue3Spline.client.ts inside the plugins directory.Add the following code to the Vue3Spline.client.ts report.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy along with TS, try use( Vue3Spline, name: "Vue3Spline" ).This must enroll as an international component that you may call anywhere in your application under the tag.I will suggest making use of a parent tag to make certain that the animation simply loads with it the customer edge.
Github.