app').If you get an inaccuracy with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).To specify global elements for Volar type-checking you will certainly need to have to incorporate:.// components.d.ts.state module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename part to use:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in layout.label strand (default: 'Vue3Spline') - set custom part name.Additionally you can additionally import the component regionally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment elements: Vue3Spline,.,.You can easily after that utilize the component in your layout.
Nuxt 3.This is still speculative. Will certainly be actually improved quickly.You can install vue3-spline over yarn or even npm. spline-runtime is actually a dependency of vue3-spline as well as need to be actually automatically set up when you put in vue3-spline.If you are actually using npm:.npm install vue3-spline@latest-- conserve.If you are using yarn:.yarn include vue3-spline@latest.Generate a file phoned plugins at the root of your project.Generate a data called Vue3Spline.client.ts inside the plugins directory.Incorporate the observing code to the Vue3Spline.client.ts file.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire a mistake along with TS, try usage( Vue3Spline, title: "Vue3Spline" ).This must enroll as a worldwide element that you may refer to as throughout your application under the tag.I will suggest using a moms and dad tag to make certain that the computer animation only lots know the customer edge.
Github.