app').If you obtain an inaccuracy with TS, attempt make use of( Vue3Spline, title: "Vue3Spline" ).To define worldwide parts for Volar type-checking you are going to need to add:.// components.d.ts.state element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename component to use:.app.use( Vue3Spline, label: 'SplineAnimation')// use in template.name string (default: 'Vue3Spline') - set customized part title.As an alternative you can easily likewise import the part regionally.import Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may then make use of the component in your design template.
Nuxt 3.This is still experimental. Will certainly be updated soon.You may set up vue3-spline over yarn or even npm. spline-runtime is a dependence of vue3-spline and should be actually automatically put up when you set up vue3-spline.If you are actually using npm:.npm set up vue3-spline@latest-- save.If you are using yarn:.anecdote include vue3-spline@latest.Make a directory contacted plugins at the origin of your venture.Make a data called Vue3Spline.client.ts inside the plugins directory site.Incorporate the complying with code to the Vue3Spline.client.ts documents.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy with TS, try use( Vue3Spline, label: "Vue3Spline" ).This should sign up as an international component that you may name throughout your application under the tag.I will encourage using a parent tag to make certain that the computer animation simply lots with it the customer edge.
Github.