app').If you acquire an inaccuracy along with TS, make an effort use( Vue3Spline, label: "Vue3Spline" ).To describe worldwide parts for Volar type-checking you are going to need to include:.// components.d.ts.announce module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to utilize:.app.use( Vue3Spline, label: 'SplineAnimation')// usage in theme.title string (nonpayment: 'Vue3Spline') - established customized part name.Alternatively you may additionally import the part in your area.bring in Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily after that use the component in your template.
Nuxt 3.This is still experimental. 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 instantly put in when you put up vue3-spline.If you are using npm:.npm set up vue3-spline@latest-- conserve.If you are using anecdote:.yarn include vue3-spline@latest.Create a file gotten in touch with plugins at the origin of your project.Develop a report named Vue3Spline.client.ts inside the plugins listing.Incorporate the complying with code to the Vue3Spline.client.ts report.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive a mistake with TS, attempt make use of( Vue3Spline, name: "Vue3Spline" ).This should sign up as a global element that you may refer to as anywhere in your app under the tag.I will recommend making use of a parent tag to guarantee that the animation only loads know the client side.
Github.