app').If you receive a mistake with TS, attempt use( Vue3Spline, label: "Vue3Spline" ).To describe international components for Volar type-checking you will certainly need to have to incorporate:.// components.d.ts.declare module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// use in design template.name strand (nonpayment: 'Vue3Spline') - set personalized component label.Additionally you may also import the component in your area.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You can easily then use the part in your design template.
Nuxt 3.This is actually still speculative. Will definitely be actually improved very soon.You may mount vue3-spline over yarn or even npm. spline-runtime is an addiction of vue3-spline and also ought to be actually immediately set up when you install vue3-spline.If you are actually using npm:.npm mount vue3-spline@latest-- save.If you are using anecdote:.anecdote incorporate vue3-spline@latest.Generate a file phoned plugins at the origin of your task.Create a report called Vue3Spline.client.ts inside the plugins directory.Incorporate the following code to the Vue3Spline.client.ts data.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an error with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).This need to register as an international component that you can refer to as anywhere in your application under the tag.I would advise making use of a moms and dad tag to make sure that the animation merely lots know the customer edge.
Github.