app').If you acquire an error with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).To describe global parts for Volar type-checking you will definitely need to have to incorporate:.// components.d.ts.state module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// usage in design template.label cord (default: 'Vue3Spline') - established customized part name.Alternatively you may also import the component in your area.bring in Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may after that make use of the part in your template.
Nuxt 3.This is still experimental. Will be actually updated very soon.You can easily mount vue3-spline over yarn or npm. spline-runtime is a dependence of vue3-spline as well as ought to be immediately mounted when you put in vue3-spline.If you are utilizing npm:.npm mount vue3-spline@latest-- save.If you are actually using yarn:.yarn add vue3-spline@latest.Create a directory gotten in touch with plugins at the origin of your job.Produce a data called Vue3Spline.client.ts inside the plugins listing.Incorporate the observing code to the Vue3Spline.client.ts documents.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake along with TS, attempt use( Vue3Spline, name: "Vue3Spline" ).This need to register as a worldwide component that you can refer to as throughout your app under the tag.I will recommend utilizing a moms and dad tag to ensure that the computer animation just tons know the customer edge.
Github.