app').If you get an inaccuracy with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).To define worldwide elements for Volar type-checking you will definitely need to incorporate:.// components.d.ts.declare element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename part to use:.app.use( Vue3Spline, label: 'SplineAnimation')// use in design template.name cord (nonpayment: 'Vue3Spline') - set custom-made element title.As an alternative you can easily likewise import the element locally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You may then use the element in your theme.
Nuxt 3.This is still speculative. Are going to be actually improved very soon.You can install vue3-spline over anecdote or even npm. spline-runtime is a reliance of vue3-spline and must be actually immediately set up when you set up vue3-spline.If you are making use of npm:.npm mount vue3-spline@latest-- spare.If you are actually making use of yarn:.yarn incorporate vue3-spline@latest.Make a file contacted plugins at the origin of your venture.Produce a report named Vue3Spline.client.ts inside the plugins directory site.Include the complying with code to the Vue3Spline.client.ts file.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an error with TS, attempt make use of( Vue3Spline, title: "Vue3Spline" ).This must sign up as an international part that you may name anywhere in your application under the tag.I will advise using a moms and dad tag to ensure that the animation only lots in on the customer side.
Github.