app').If you receive an inaccuracy with TS, make an effort usage( Vue3Spline, label: "Vue3Spline" ).To determine global elements for Volar type-checking you are going to need 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 rename element to use:.app.use( Vue3Spline, name: 'SplineAnimation')// use in layout.name strand (nonpayment: 'Vue3Spline') - prepared custom-made element title.Alternatively you may likewise import the part in your area.bring in Vue3Spline from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You may after that make use of the component in your theme.
Nuxt 3.This is actually still experimental. Will certainly be actually updated quickly.You can install vue3-spline over anecdote or npm. spline-runtime is actually a dependency of vue3-spline as well as need to be immediately set up when you install vue3-spline.If you are actually making use of npm:.npm mount vue3-spline@latest-- save.If you are utilizing anecdote:.anecdote add vue3-spline@latest.Produce a folder contacted plugins at the root of your venture.Make a documents called Vue3Spline.client.ts inside the plugins directory site.Add the complying with code to the Vue3Spline.client.ts data.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake with TS, attempt usage( Vue3Spline, name: "Vue3Spline" ).This should register as a global element that you can name throughout your app under the tag.I will advise using a moms and dad tag to make sure that the computer animation only tons with it the client edge.
Github.