app').If you obtain an inaccuracy with TS, make an effort make use of( Vue3Spline, label: "Vue3Spline" ).To describe international elements for Volar type-checking you will certainly require to include:.// components.d.ts.announce component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to use:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in layout.title cord (nonpayment: 'Vue3Spline') - specified custom-made component name.Conversely you may also import the element regionally.bring in Vue3Spline from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily after that utilize the component in your template.
Nuxt 3.This is actually still speculative. Will be upgraded very soon.You may put up vue3-spline over anecdote or even npm. spline-runtime is a dependence of vue3-spline and must be actually immediately installed when you mount vue3-spline.If you are actually using npm:.npm put up vue3-spline@latest-- spare.If you are actually using yarn:.anecdote incorporate vue3-spline@latest.Develop a file contacted plugins at the origin of your project.Make a documents named Vue3Spline.client.ts inside the plugins directory.Add the adhering to code to the Vue3Spline.client.ts file.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive a mistake with TS, make an effort use( Vue3Spline, label: "Vue3Spline" ).This ought to enroll as an international element that you can easily name throughout your app under the tag.I would certainly encourage making use of a parent tag to ensure that the computer animation merely lots with it the customer side.
Github.