app').If you acquire an error along with TS, try use( Vue3Spline, name: "Vue3Spline" ).To define worldwide parts for Volar type-checking you will certainly require to add:.// components.d.ts.declare module '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename part to make use of:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in design template.label strand (default: 'Vue3Spline') - set custom part label.As an alternative you can also import the element in your area.import Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can then make use of the part in your design template.
Nuxt 3.This is still speculative. Will be actually updated quickly.You can easily mount vue3-spline over anecdote or even npm. spline-runtime is actually a reliance of vue3-spline and also must be actually instantly put up when you mount vue3-spline.If you are actually making use of npm:.npm install vue3-spline@latest-- save.If you are using anecdote:.anecdote include vue3-spline@latest.Create a file contacted plugins at the root of your job.Produce a documents called Vue3Spline.client.ts inside the plugins directory.Include the observing code to the Vue3Spline.client.ts file.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an error along with TS, try use( Vue3Spline, title: "Vue3Spline" ).This ought to enroll as a worldwide part that you may call throughout your app under the tag.I will encourage using a moms and dad tag to ensure that the animation only loads know the customer edge.
Github.