app').If you get a mistake with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).To define international parts for Volar type-checking you are going to need to have to add:.// components.d.ts.declare element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to use:.app.use( Vue3Spline, label: 'SplineAnimation')// use in layout.title cord (nonpayment: 'Vue3Spline') - established personalized part label.Alternatively you can easily additionally import the component regionally.import Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You may after that use the element in your design template.
Nuxt 3.This is actually still experimental. Are going to be actually improved quickly.You can easily install vue3-spline over anecdote or npm. spline-runtime is actually a reliance of vue3-spline and should be instantly put up when you install vue3-spline.If you are using npm:.npm put up vue3-spline@latest-- spare.If you are actually utilizing yarn:.anecdote include vue3-spline@latest.Develop a directory contacted plugins at the root of your task.Generate a file called Vue3Spline.client.ts inside the plugins listing.Include the following code to the Vue3Spline.client.ts data.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy along with TS, try usage( Vue3Spline, label: "Vue3Spline" ).This should enroll as a global element that you can call throughout your app under the tag.I would suggest making use of a moms and dad tag to make sure that the animation only bunches in on the client edge.
Github.