app').If you get an error along with TS, attempt usage( Vue3Spline, label: "Vue3Spline" ).To define worldwide components for Volar type-checking you will definitely need to have to add:.// components.d.ts.declare component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename part to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// use in theme.label string (default: 'Vue3Spline') - prepared custom-made component label.Alternatively you may likewise import the component locally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can at that point utilize the component in your design template.
Nuxt 3.This is actually still experimental. Are going to be updated very soon.You can mount vue3-spline over yarn or even npm. spline-runtime is a dependence of vue3-spline and should be actually immediately put in when you put in vue3-spline.If you are actually utilizing npm:.npm install vue3-spline@latest-- spare.If you are actually using anecdote:.anecdote include vue3-spline@latest.Generate a file gotten in touch with plugins at the root of your task.Generate a data named Vue3Spline.client.ts inside the plugins directory.Include the adhering to code to the Vue3Spline.client.ts file.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain a mistake with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).This should register as an international part that you can easily call anywhere in your app under the tag.I would certainly recommend making use of a parent tag to ensure that the computer animation only loads in on the client edge.
Github.