app').If you get an error along with TS, try use( Vue3Spline, name: "Vue3Spline" ).To define global components for Volar type-checking you are going to need to have 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 needed to have rename component to make use of:.app.use( Vue3Spline, name: 'SplineAnimation')// make use of in design template.title string (nonpayment: 'Vue3Spline') - established custom-made element label.Alternatively you may likewise import the element in your area.bring in Vue3Spline coming from 'vue3-spline'.export default components: Vue3Spline,.,.You can easily after that use the element in your layout.
Nuxt 3.This is actually still speculative. Will certainly be updated soon.You may mount vue3-spline over anecdote or npm. spline-runtime is actually an addiction of vue3-spline as well as should be automatically set up when you put in vue3-spline.If you are actually making use of npm:.npm put up vue3-spline@latest-- spare.If you are actually making use of yarn:.yarn include vue3-spline@latest.Develop a folder contacted plugins at the origin of your venture.Create a report called Vue3Spline.client.ts inside the plugins directory.Incorporate the observing code to the Vue3Spline.client.ts report.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy along with TS, try make use of( Vue3Spline, label: "Vue3Spline" ).This should enroll as a worldwide component that you can easily name throughout your application under the tag.I would encourage utilizing a parent tag to ensure that the animation merely bunches in on the customer side.
Github.