app').If you acquire a mistake with TS, make an effort usage( Vue3Spline, label: "Vue3Spline" ).To determine worldwide components for Volar type-checking you are going to require to incorporate:.// components.d.ts.declare component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename part to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// use in layout.title cord (default: 'Vue3Spline') - established personalized component label.Alternatively you can likewise import the part regionally.bring in Vue3Spline from 'vue3-spline'.export default components: Vue3Spline,.,.You can then utilize the component in your layout.
Nuxt 3.This is still experimental. Are going to be upgraded soon.You may set up vue3-spline over anecdote or even npm. spline-runtime is a dependency of vue3-spline and should be actually automatically put in when you put in vue3-spline.If you are actually utilizing npm:.npm put up vue3-spline@latest-- spare.If you are actually making use of anecdote:.yarn add vue3-spline@latest.Produce a file gotten in touch with plugins at the origin of your project.Develop a data called Vue3Spline.client.ts inside the plugins directory.Include the adhering to code to the Vue3Spline.client.ts report.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy with TS, try usage( Vue3Spline, name: "Vue3Spline" ).This need to sign up as a global element that you can easily name anywhere in your application under the tag.I will recommend making use of a moms and dad tag to ensure that the animation simply bunches in on the customer side.
Github.