app').If you get a mistake along with TS, make an effort usage( Vue3Spline, name: "Vue3Spline" ).To define international parts for Volar type-checking you will certainly need to have to incorporate:.// components.d.ts.proclaim module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to utilize:.app.use( Vue3Spline, label: 'SplineAnimation')// use in design template.label cord (default: 'Vue3Spline') - established personalized part title.Conversely you can easily likewise import the part regionally.bring in Vue3Spline from 'vue3-spline'.export default parts: Vue3Spline,.,.You can after that make use of the part in your design template.
Nuxt 3.This is still speculative. Will certainly be actually updated soon.You can easily mount vue3-spline over yarn or npm. spline-runtime is a dependence of vue3-spline as well as should be actually automatically put up when you mount vue3-spline.If you are actually utilizing npm:.npm install vue3-spline@latest-- spare.If you are utilizing yarn:.yarn incorporate vue3-spline@latest.Produce a file phoned plugins at the root of your project.Make a file called Vue3Spline.client.ts inside the plugins directory site.Add the observing code to the Vue3Spline.client.ts data.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy along with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).This should enroll as a worldwide part that you may call anywhere in your application under the tag.I would certainly recommend utilizing a moms and dad tag to make certain that the computer animation merely lots in on the customer side.
Github.