app').If you obtain an error with TS, make an effort usage( Vue3Spline, title: "Vue3Spline" ).To describe international elements for Volar type-checking you will require to incorporate:.// components.d.ts.declare element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to use:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in layout.name cord (nonpayment: 'Vue3Spline') - specified custom part label.As an alternative you can easily additionally import the component locally.bring in Vue3Spline coming from 'vue3-spline'.export default components: Vue3Spline,.,.You can easily at that point use the element in your design template.
Nuxt 3.This is still speculative. Will be actually improved soon.You can put up vue3-spline over yarn or npm. spline-runtime is an addiction of vue3-spline and must be immediately mounted when you put up vue3-spline.If you are using npm:.npm mount vue3-spline@latest-- save.If you are actually making use of anecdote:.yarn add vue3-spline@latest.Generate a directory phoned plugins at the origin of your task.Produce a data named Vue3Spline.client.ts inside the plugins directory.Incorporate the following code to the Vue3Spline.client.ts documents.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an error along with TS, try usage( Vue3Spline, title: "Vue3Spline" ).This must sign up as an international element that you can name throughout your application under the tag.I would encourage making use of a moms and dad tag to ensure that the animation merely tons know the client side.
Github.