app').If you get an error along with TS, try use( Vue3Spline, title: "Vue3Spline" ).To describe worldwide elements for Volar type-checking you will certainly need to have to include:.// components.d.ts.announce module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename element to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in theme.name cord (default: 'Vue3Spline') - set personalized component name.Alternatively you can easily likewise import the element regionally.import Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You may at that point make use of the part in your layout.
Nuxt 3.This is still speculative. Are going to be updated quickly.You can easily install vue3-spline over anecdote or even npm. spline-runtime is an addiction of vue3-spline as well as need to be actually immediately installed when you put up vue3-spline.If you are actually making use of npm:.npm put up vue3-spline@latest-- save.If you are actually utilizing yarn:.anecdote add vue3-spline@latest.Produce a directory contacted plugins at the origin of your task.Create a documents named Vue3Spline.client.ts inside the plugins directory.Incorporate the adhering to code to the Vue3Spline.client.ts report.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain a mistake with TS, attempt usage( Vue3Spline, title: "Vue3Spline" ).This should sign up as a worldwide element that you can easily name anywhere in your app under the tag.I will advise using a moms and dad tag to make certain that the animation only bunches know the customer edge.
Github.