app').If you obtain a mistake along with TS, attempt make use of( Vue3Spline, name: "Vue3Spline" ).To specify worldwide components for Volar type-checking you will definitely need to have to include:.// components.d.ts.state component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in theme.label strand (nonpayment: 'Vue3Spline') - prepared custom component label.As an alternative you can easily additionally import the component locally.import Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can after that make use of the component in your design template.
Nuxt 3.This is actually still experimental. Will definitely be actually updated very soon.You can easily set up vue3-spline over yarn or even npm. spline-runtime is a reliance of vue3-spline and also ought to be actually instantly installed when you put in vue3-spline.If you are using npm:.npm put in vue3-spline@latest-- save.If you are actually making use of yarn:.anecdote add vue3-spline@latest.Develop a file called plugins at the origin of your job.Produce a documents called Vue3Spline.client.ts inside the plugins listing.Add the following code to the Vue3Spline.client.ts file.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive a mistake with TS, try usage( Vue3Spline, label: "Vue3Spline" ).This must register as a worldwide element that you may refer to as anywhere in your app under the tag.I would certainly advise using a parent tag to make certain that the animation merely bunches with it the customer edge.
Github.