app').If you get an error with TS, try make use of( Vue3Spline, title: "Vue3Spline" ).To define worldwide components for Volar type-checking you will need to have to include:.// components.d.ts.declare component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to use:.app.use( Vue3Spline, name: 'SplineAnimation')// use in theme.title string (default: 'Vue3Spline') - specified custom-made part name.Conversely you can also import the part in your area.import Vue3Spline coming from 'vue3-spline'.export default parts: Vue3Spline,.,.You may after that use the part in your layout.
Nuxt 3.This is still experimental. Will be improved quickly.You can install vue3-spline over yarn or npm. spline-runtime is a dependency of vue3-spline and also need to be actually automatically put up when you install vue3-spline.If you are utilizing npm:.npm install vue3-spline@latest-- conserve.If you are making use of anecdote:.yarn incorporate vue3-spline@latest.Develop a directory phoned plugins at the root of your venture.Generate a file called Vue3Spline.client.ts inside the plugins directory site.Add the complying with code to the Vue3Spline.client.ts report.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get an inaccuracy along with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).This should enroll as a global part that you may refer to as anywhere in your app under the tag.I would suggest utilizing a parent tag to guarantee that the computer animation merely tons with it the customer edge.
Github.