app').If you receive an error with TS, try use( Vue3Spline, label: "Vue3Spline" ).To define global elements for Volar type-checking you will definitely need 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 required rename component to utilize:.app.use( Vue3Spline, label: 'SplineAnimation')// use in theme.name strand (default: 'Vue3Spline') - specified custom part label.Additionally you can easily also import the component regionally.bring in Vue3Spline from 'vue3-spline'.export default parts: Vue3Spline,.,.You can easily then use the component in your layout.
Nuxt 3.This is still speculative. Are going to be actually improved soon.You may mount vue3-spline over yarn or npm. spline-runtime is actually a dependence of vue3-spline as well as must be automatically put up when you mount vue3-spline.If you are actually making use of npm:.npm mount vue3-spline@latest-- conserve.If you are making use of anecdote:.yarn incorporate vue3-spline@latest.Create a folder gotten in touch with plugins at the origin of your project.Make a data called Vue3Spline.client.ts inside the plugins directory.Incorporate the following code to the Vue3Spline.client.ts data.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain a mistake along with TS, try usage( Vue3Spline, title: "Vue3Spline" ).This must sign up as a worldwide component that you may call throughout your app under the tag.I would certainly encourage using a moms and dad tag to guarantee that the animation just tons know the customer side.
Github.