app').If you get an error with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).To describe worldwide elements for Volar type-checking you will need to have to include:.// components.d.ts.proclaim element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to make use of:.app.use( Vue3Spline, name: 'SplineAnimation')// use in design template.title cord (nonpayment: 'Vue3Spline') - prepared customized part title.As an alternative you can also import the component regionally.import Vue3Spline from 'vue3-spline'.export default components: Vue3Spline,.,.You can then utilize the part in your template.
Nuxt 3.This is actually still experimental. Are going to be actually improved soon.You may mount vue3-spline over anecdote or npm. spline-runtime is a dependency of vue3-spline and ought to be actually instantly put in when you set up vue3-spline.If you are utilizing npm:.npm mount vue3-spline@latest-- save.If you are actually utilizing yarn:.yarn include vue3-spline@latest.Generate a folder gotten in touch with plugins at the origin of your task.Make a documents named Vue3Spline.client.ts inside the plugins directory.Add the adhering to code to the Vue3Spline.client.ts documents.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake with TS, try usage( Vue3Spline, title: "Vue3Spline" ).This ought to register as a worldwide part that you may call throughout your app under the tag.I would recommend using a parent tag to guarantee that the animation simply tons know the client side.
Github.