app').If you obtain an error with TS, make an effort usage( Vue3Spline, name: "Vue3Spline" ).To define global components for Volar type-checking you will definitely need to have to incorporate:.// components.d.ts.proclaim component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to make use of:.app.use( Vue3Spline, label: 'SplineAnimation')// usage in design template.name string (default: 'Vue3Spline') - prepared customized element name.Conversely you can also import the component regionally.import Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can after that make use of the element in your theme.
Nuxt 3.This is still experimental. Will certainly be updated quickly.You can easily put in vue3-spline over yarn or even npm. spline-runtime is actually an addiction of vue3-spline and also ought to be actually immediately set up when you put up vue3-spline.If you are making use of npm:.npm mount vue3-spline@latest-- conserve.If you are using yarn:.yarn include vue3-spline@latest.Develop a directory called plugins at the origin of your project.Create a data called Vue3Spline.client.ts inside the plugins listing.Incorporate the observing code to the Vue3Spline.client.ts documents.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an error along with TS, try use( Vue3Spline, title: "Vue3Spline" ).This should sign up as a worldwide component that you can easily name anywhere in your application under the tag.I will highly recommend making use of a moms and dad tag to make sure that the computer animation merely bunches in on the client side.
Github.