app').If you receive a mistake along with TS, try use( Vue3Spline, name: "Vue3Spline" ).To determine worldwide parts for Volar type-checking you are going to require to include:.// components.d.ts.state component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// use in theme.label string (nonpayment: 'Vue3Spline') - set custom component label.Conversely you can easily additionally import the part in your area.bring in Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may at that point make use of the component in your layout.
Nuxt 3.This is still experimental. Will be actually improved soon.You can mount vue3-spline over yarn or even npm. spline-runtime is actually a dependence of vue3-spline and ought to be actually instantly mounted when you install vue3-spline.If you are actually using npm:.npm set up vue3-spline@latest-- save.If you are actually using anecdote:.yarn add vue3-spline@latest.Make a folder phoned plugins at the root of your job.Produce a file called Vue3Spline.client.ts inside the plugins directory.Include the following code to the Vue3Spline.client.ts file.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy along with TS, make an effort make use of( Vue3Spline, label: "Vue3Spline" ).This should register as a worldwide part that you may call throughout your application under the tag.I will advise utilizing a moms and dad tag to guarantee that the animation just tons in on the customer edge.
Github.