app').If you receive an inaccuracy along with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).To define global elements for Volar type-checking you are going to need to incorporate:.// components.d.ts.announce component '@vue/ runtime-core' export user 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')// make use of in template.title cord (nonpayment: 'Vue3Spline') - specified custom element title.As an alternative you may additionally import the component in your area.import Vue3Spline coming from 'vue3-spline'.export default parts: Vue3Spline,.,.You can easily then use the element in your template.
Nuxt 3.This is still experimental. Will be actually improved quickly.You may set up vue3-spline over yarn or npm. spline-runtime is a dependence of vue3-spline and also must be immediately mounted when you install vue3-spline.If you are making use of npm:.npm put up vue3-spline@latest-- conserve.If you are making use of yarn:.anecdote include vue3-spline@latest.Develop a directory gotten in touch with plugins at the origin of your venture.Produce a data named Vue3Spline.client.ts inside the plugins directory site.Include the complying with code to the Vue3Spline.client.ts documents.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an inaccuracy with TS, attempt use( Vue3Spline, label: "Vue3Spline" ).This need to sign up as an international element that you can call throughout your app under the tag.I will advise making use of a moms and dad tag to make certain that the computer animation simply lots in on the client side.
Github.