app').If you receive a mistake with TS, attempt use( Vue3Spline, label: "Vue3Spline" ).To specify international components for Volar type-checking you are going to need to have to incorporate:.// components.d.ts.proclaim element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to use:.app.use( Vue3Spline, label: 'SplineAnimation')// usage in layout.title cord (default: 'Vue3Spline') - set personalized component label.As an alternative you can easily additionally import the component locally.bring in Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can easily after that utilize the part in your design template.
Nuxt 3.This is still speculative. Will definitely be improved very soon.You may install vue3-spline over anecdote or npm. spline-runtime is actually a reliance of vue3-spline and should be actually immediately put up when you install vue3-spline.If you are making use of npm:.npm put in vue3-spline@latest-- conserve.If you are making use of anecdote:.anecdote add vue3-spline@latest.Develop a folder gotten in touch with plugins at the origin of your project.Make a file called Vue3Spline.client.ts inside the plugins listing.Incorporate the adhering to code to the Vue3Spline.client.ts file.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire a mistake along with TS, try use( Vue3Spline, label: "Vue3Spline" ).This should register as a global component that you may refer to as anywhere in your app under the tag.I would certainly recommend using a parent tag to ensure that the computer animation merely loads in on the client edge.
Github.