app').If you receive an inaccuracy with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).To define worldwide parts for Volar type-checking you will definitely require to include:.// components.d.ts.declare module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to use:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in template.label strand (default: 'Vue3Spline') - established personalized part name.As an alternative you can also import the element regionally.import Vue3Spline coming from 'vue3-spline'.export default elements: Vue3Spline,.,.You can at that point use the element in your template.
Nuxt 3.This is still experimental. Are going to be improved soon.You may put up vue3-spline over yarn or even npm. spline-runtime is a reliance of vue3-spline as well as ought to be instantly put up when you put up vue3-spline.If you are actually using npm:.npm set up vue3-spline@latest-- conserve.If you are actually utilizing anecdote:.yarn add vue3-spline@latest.Produce a folder gotten in touch with plugins at the root of your task.Develop a file called Vue3Spline.client.ts inside the plugins listing.Include the following code to the Vue3Spline.client.ts file.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an inaccuracy along with TS, make an effort make use of( Vue3Spline, title: "Vue3Spline" ).This must enroll as an international component that you can refer to as anywhere in your app under the tag.I would encourage utilizing a moms and dad tag to guarantee that the animation just tons know the client edge.
Github.