app').If you acquire an error with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).To define international parts for Volar type-checking you will need to have to include:.// components.d.ts.declare component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename part to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// use in template.label string (default: 'Vue3Spline') - set custom-made element name.Conversely you can additionally import the part regionally.import Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can easily after that make use of the part in your theme.
Nuxt 3.This is actually still speculative. Will certainly be actually upgraded soon.You may put up vue3-spline over anecdote or npm. spline-runtime is a dependency of vue3-spline and also ought to be actually immediately mounted when you set up vue3-spline.If you are utilizing npm:.npm put in vue3-spline@latest-- conserve.If you are actually using anecdote:.anecdote incorporate vue3-spline@latest.Create a file contacted plugins at the origin of your project.Produce a file named Vue3Spline.client.ts inside the plugins directory.Incorporate the adhering to code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an inaccuracy with TS, make an effort usage( Vue3Spline, label: "Vue3Spline" ).This need to enroll as an international element that you can name anywhere in your application under the tag.I would advise utilizing a parent tag to make sure that the computer animation merely tons with it the customer side.
Github.