app').If you receive an inaccuracy along with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).To specify worldwide elements for Volar type-checking you will definitely require to incorporate:.// components.d.ts.state element '@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')// use in layout.title cord (default: 'Vue3Spline') - set personalized part name.Conversely you can easily additionally import the element in your area.bring in Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can at that point utilize the component in your layout.
Nuxt 3.This is actually still speculative. Are going to be actually updated quickly.You can mount vue3-spline over yarn or even npm. spline-runtime is actually a dependence of vue3-spline as well as must be automatically set up when you put up vue3-spline.If you are actually utilizing npm:.npm mount vue3-spline@latest-- spare.If you are actually making use of anecdote:.yarn include vue3-spline@latest.Produce a file gotten in touch with plugins at the origin of your project.Develop a documents named Vue3Spline.client.ts inside the plugins directory.Incorporate the observing code to the Vue3Spline.client.ts report.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy with TS, make an effort usage( Vue3Spline, name: "Vue3Spline" ).This ought to enroll as a worldwide part that you can call throughout your application under the tag.I will advise utilizing a moms and dad tag to make sure that the animation simply lots in on the customer side.
Github.