app').If you acquire an error along with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).To determine international components for Volar type-checking you are going to need to have to add:.// components.d.ts.declare module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename component to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in theme.title string (nonpayment: 'Vue3Spline') - established customized component label.Conversely you can easily also import the element in your area.import Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You may after that utilize the part in your design template.
Nuxt 3.This is still experimental. Will definitely be actually updated soon.You may put in vue3-spline over yarn or even npm. spline-runtime is actually a reliance of vue3-spline as well as need to be actually immediately mounted when you put up vue3-spline.If you are using npm:.npm mount vue3-spline@latest-- conserve.If you are making use of anecdote:.anecdote include vue3-spline@latest.Develop a folder phoned plugins at the origin of your venture.Develop a data called Vue3Spline.client.ts inside the plugins listing.Include the observing code to the Vue3Spline.client.ts file.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an error with TS, try usage( Vue3Spline, title: "Vue3Spline" ).This ought to register as a worldwide part that you can easily refer to as throughout your application under the tag.I would certainly recommend using a parent tag to ensure that the animation only bunches with it the customer edge.
Github.