app').If you acquire an error with TS, make an effort make use of( Vue3Spline, name: "Vue3Spline" ).To define international parts for Volar type-checking you will certainly need to add:.// components.d.ts.proclaim component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to make use of:.app.use( Vue3Spline, name: 'SplineAnimation')// use in design template.label strand (default: 'Vue3Spline') - set customized element name.Additionally you can additionally import the element in your area.import Vue3Spline coming from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You can easily after that make use of the component in your layout.
Nuxt 3.This is still speculative. Will be actually upgraded soon.You may mount vue3-spline over anecdote or even npm. spline-runtime is a reliance of vue3-spline and also ought to be actually immediately set up when you set up vue3-spline.If you are making use of npm:.npm put up vue3-spline@latest-- conserve.If you are actually making use of anecdote:.yarn add vue3-spline@latest.Develop a directory gotten in touch with plugins at the root of your project.Create a file called Vue3Spline.client.ts inside the plugins listing.Incorporate the adhering to code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an error with TS, attempt use( Vue3Spline, label: "Vue3Spline" ).This ought to enroll as an international element that you can name anywhere in your application under the tag.I would encourage making use of a moms and dad tag to make certain that the computer animation simply loads know the customer side.
Github.