app').If you acquire an inaccuracy along with TS, make an effort make use of( Vue3Spline, name: "Vue3Spline" ).To determine international elements for Volar type-checking you will certainly require to add:.// components.d.ts.proclaim element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// use in layout.label strand (nonpayment: 'Vue3Spline') - established personalized element name.Conversely you may also import the element regionally.bring in Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can easily after that make use of the part in your design template.
Nuxt 3.This is actually still experimental. Will certainly be actually upgraded very soon.You can mount vue3-spline over yarn or even npm. spline-runtime is a dependency of vue3-spline and also must be automatically set up when you set up vue3-spline.If you are actually using npm:.npm install vue3-spline@latest-- conserve.If you are actually making use of yarn:.yarn add vue3-spline@latest.Develop a folder called plugins at the root of your venture.Develop a documents called Vue3Spline.client.ts inside the plugins directory.Add the complying with code to the Vue3Spline.client.ts data.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an error along with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).This must enroll as a global part that you can easily call throughout your app under the tag.I would certainly highly recommend using a parent tag to guarantee that the animation simply tons in on the client side.
Github.