app').If you receive an error along with TS, try use( Vue3Spline, name: "Vue3Spline" ).To determine worldwide components for Volar type-checking you will definitely need to include:.// components.d.ts.declare element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to utilize:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in template.label string (default: 'Vue3Spline') - set custom component title.As an alternative you may also import the component regionally.import Vue3Spline from 'vue3-spline'.export default components: Vue3Spline,.,.You can then utilize the element in your template.
Nuxt 3.This is actually still speculative. Will certainly be updated quickly.You can set up vue3-spline over anecdote or even npm. spline-runtime is actually a reliance of vue3-spline and need to be actually immediately set up when you install vue3-spline.If you are making use of npm:.npm put up vue3-spline@latest-- conserve.If you are using anecdote:.anecdote add vue3-spline@latest.Make a file contacted plugins at the root of your project.Develop a report named Vue3Spline.client.ts inside the plugins directory.Include the observing code to the Vue3Spline.client.ts data.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire a mistake along with TS, make an effort usage( Vue3Spline, name: "Vue3Spline" ).This must sign up as an international component that you can easily name anywhere in your app under the tag.I will recommend utilizing a parent tag to ensure that the computer animation merely lots in on the customer side.
Github.