app').If you receive a mistake along with TS, try make use of( Vue3Spline, title: "Vue3Spline" ).To determine international components for Volar type-checking you will definitely need to add:.// components.d.ts.state component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// use in design template.label string (nonpayment: 'Vue3Spline') - specified customized component name.Conversely you can additionally import the part regionally.import Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can easily at that point use the element in your layout.
Nuxt 3.This is still experimental. Will definitely be actually updated soon.You may put up vue3-spline over anecdote or even npm. spline-runtime is a dependence of vue3-spline and ought to be actually automatically set up when you set up vue3-spline.If you are using npm:.npm set up vue3-spline@latest-- save.If you are using anecdote:.yarn include vue3-spline@latest.Make a file called plugins at the root of your project.Generate a data named Vue3Spline.client.ts inside the plugins directory site.Include the following code to the Vue3Spline.client.ts documents.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy along with TS, make an effort make use of( Vue3Spline, label: "Vue3Spline" ).This should enroll as a global element that you may call throughout your application under the tag.I would highly recommend utilizing a parent tag to make certain that the computer animation just loads with it the client edge.
Github.