app').If you get a mistake with TS, attempt usage( Vue3Spline, name: "Vue3Spline" ).To determine 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, name: 'SplineAnimation')// make use of in theme.label cord (nonpayment: 'Vue3Spline') - set custom-made element title.Conversely you may likewise import the element in your area.bring in Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You may then make use of the element in your design template.
Nuxt 3.This is actually still speculative. Are going to be improved soon.You can put in vue3-spline over yarn or even npm. spline-runtime is a dependence of vue3-spline and must be automatically installed when you set up vue3-spline.If you are utilizing npm:.npm set up vue3-spline@latest-- conserve.If you are utilizing yarn:.anecdote include vue3-spline@latest.Generate a folder called plugins at the root of your job.Generate a file called Vue3Spline.client.ts inside the plugins listing.Include the following code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an error along with TS, make an effort make use of( Vue3Spline, label: "Vue3Spline" ).This need to register as a worldwide element that you can easily name throughout your app under the tag.I would encourage making use of a parent tag to ensure that the animation merely bunches know the customer edge.
Github.