app').If you acquire an inaccuracy with TS, attempt use( Vue3Spline, name: "Vue3Spline" ).To describe worldwide elements for Volar type-checking you will definitely need to have to add:.// components.d.ts.announce module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename part to use:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in template.name cord (default: 'Vue3Spline') - specified custom component label.As an alternative you can likewise import the component regionally.import Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may after that utilize the element in your design template.
Nuxt 3.This is actually still speculative. Will definitely be updated soon.You may set up vue3-spline over anecdote or even npm. spline-runtime is a dependence of vue3-spline and also need to be actually immediately set up when you put in vue3-spline.If you are using npm:.npm put up vue3-spline@latest-- spare.If you are actually utilizing yarn:.yarn add vue3-spline@latest.Create a file gotten in touch with plugins at the origin of your project.Develop a file named Vue3Spline.client.ts inside the plugins listing.Add the complying with code to the Vue3Spline.client.ts report.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an inaccuracy along with TS, attempt usage( Vue3Spline, name: "Vue3Spline" ).This should sign up as a worldwide component that you can call throughout your application under the tag.I will encourage utilizing a moms and dad tag to guarantee that the animation simply lots with it the customer side.
Github.