app').If you receive a mistake along with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).To determine international elements for Volar type-checking you are going to need to have to incorporate:.// components.d.ts.declare element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to use:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in template.label string (nonpayment: 'Vue3Spline') - set personalized part name.Conversely you can easily additionally import the part locally.bring in Vue3Spline from 'vue3-spline'.export default parts: Vue3Spline,.,.You can at that point use the component in your theme.
Nuxt 3.This is actually still experimental. Will definitely be actually updated quickly.You can easily mount vue3-spline over yarn or npm. spline-runtime is an addiction of vue3-spline as well as should be actually automatically mounted when you mount vue3-spline.If you are actually making use of npm:.npm put in vue3-spline@latest-- spare.If you are actually using yarn:.anecdote add vue3-spline@latest.Develop a folder gotten in touch with plugins at the origin of your task.Create a file named Vue3Spline.client.ts inside the plugins listing.Incorporate the following code to the Vue3Spline.client.ts documents.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy with TS, try use( Vue3Spline, title: "Vue3Spline" ).This ought to register as a global element that you can refer to as throughout your app under the tag.I would suggest using a moms and dad tag to make sure that the computer animation only bunches know the customer side.
Github.