app').If you get a mistake with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).To determine international components for Volar type-checking you are going to require to include:.// components.d.ts.declare component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// make use of in design template.title cord (default: 'Vue3Spline') - specified personalized part label.As an alternative you may also import the component regionally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You can easily after that use the part in your design template.
Nuxt 3.This is actually still speculative. Will definitely be actually improved very soon.You can easily put up vue3-spline over yarn or even npm. spline-runtime is actually a reliance of vue3-spline and need to be actually automatically put up when you install vue3-spline.If you are actually making use of npm:.npm install vue3-spline@latest-- save.If you are actually utilizing anecdote:.yarn add vue3-spline@latest.Create a folder gotten in touch with plugins at the root of your project.Make a file named Vue3Spline.client.ts inside the plugins listing.Add the adhering to code to the Vue3Spline.client.ts data.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get an inaccuracy along with TS, attempt make use of( Vue3Spline, name: "Vue3Spline" ).This must register as a global part that you may call anywhere in your application under the tag.I will highly recommend using a parent tag to ensure that the animation just bunches in on the client edge.
Github.