app').If you obtain an inaccuracy with TS, attempt use( Vue3Spline, name: "Vue3Spline" ).To describe global components for Volar type-checking you will definitely need to incorporate:.// components.d.ts.declare element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in template.label string (nonpayment: 'Vue3Spline') - specified custom-made part title.Additionally you can also import the component locally.import Vue3Spline coming from 'vue3-spline'.export default components: Vue3Spline,.,.You can easily then make use of the part in your theme.
Nuxt 3.This is actually still speculative. Will be upgraded very soon.You can put up vue3-spline over anecdote or npm. spline-runtime is a dependency of vue3-spline and must be immediately set up when you put up vue3-spline.If you are using npm:.npm mount vue3-spline@latest-- conserve.If you are using yarn:.yarn include vue3-spline@latest.Make a directory contacted plugins at the root of your project.Produce a file named Vue3Spline.client.ts inside the plugins listing.Add the complying with code to the Vue3Spline.client.ts data.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy with TS, try usage( Vue3Spline, title: "Vue3Spline" ).This need to register as a global component that you can easily name anywhere in your application under the tag.I will encourage using a moms and dad tag to ensure that the animation only bunches with it the customer edge.
Github.