app').If you obtain a mistake along with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).To define international parts for Volar type-checking you will certainly need to have to include:.// components.d.ts.state element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename part to use:.app.use( Vue3Spline, label: 'SplineAnimation')// use in theme.name cord (default: 'Vue3Spline') - prepared custom-made part title.Additionally you can easily also import the component in your area.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can easily at that point utilize the element in your theme.
Nuxt 3.This is still speculative. Are going to be actually updated quickly.You can put in vue3-spline over anecdote or npm. spline-runtime is a dependency of vue3-spline and also must be actually immediately put up when you put in vue3-spline.If you are utilizing npm:.npm mount vue3-spline@latest-- save.If you are actually utilizing anecdote:.yarn incorporate vue3-spline@latest.Make a file phoned plugins at the root of your venture.Develop a report named Vue3Spline.client.ts inside the plugins directory site.Include the observing code to the Vue3Spline.client.ts documents.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get an error with TS, make an effort make use of( Vue3Spline, label: "Vue3Spline" ).This ought to register as an international component that you can easily name anywhere in your application under the tag.I would encourage utilizing a parent tag to guarantee that the computer animation simply bunches know the client edge.
Github.