app').If you acquire an error along with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).To determine global elements for Volar type-checking you will require to include:.// components.d.ts.declare component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename component to use:.app.use( Vue3Spline, name: 'SplineAnimation')// use in theme.label strand (nonpayment: 'Vue3Spline') - prepared custom-made part name.As an alternative you can easily likewise import the element locally.import Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can easily at that point utilize the component in your design template.
Nuxt 3.This is still experimental. Will be upgraded soon.You can mount vue3-spline over anecdote or even npm. spline-runtime is actually a reliance of vue3-spline and also must be automatically put up when you mount vue3-spline.If you are using npm:.npm mount vue3-spline@latest-- spare.If you are actually making use of anecdote:.yarn incorporate vue3-spline@latest.Produce a directory called plugins at the root of your venture.Produce a documents named Vue3Spline.client.ts inside the plugins listing.Add the complying with code to the Vue3Spline.client.ts data.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get an error with TS, try usage( Vue3Spline, title: "Vue3Spline" ).This should sign up as an international part that you may refer to as anywhere in your application under the tag.I will highly recommend making use of a parent tag to guarantee that the computer animation just tons know the customer edge.
Github.