app').If you get a mistake along with TS, try usage( Vue3Spline, title: "Vue3Spline" ).To define worldwide components for Volar type-checking you will require to incorporate:.// components.d.ts.state element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to use:.app.use( Vue3Spline, label: 'SplineAnimation')// use in theme.title cord (nonpayment: 'Vue3Spline') - specified custom element label.Alternatively you may also import the element locally.import Vue3Spline coming from 'vue3-spline'.export default elements: Vue3Spline,.,.You may after that utilize the element in your theme.
Nuxt 3.This is actually still experimental. Will certainly be updated quickly.You can easily install vue3-spline over yarn or even npm. spline-runtime is a reliance of vue3-spline and also should be immediately mounted when you mount vue3-spline.If you are actually using npm:.npm put up vue3-spline@latest-- save.If you are using yarn:.anecdote add vue3-spline@latest.Generate a directory contacted plugins at the root of your venture.Generate a documents called Vue3Spline.client.ts inside the plugins directory site.Include the observing code to the Vue3Spline.client.ts file.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, title: "Vue3Spline" ).This need to register as an international element that you can refer to as anywhere in your application under the tag.I will advise using a parent tag to guarantee that the animation just loads in on the client edge.
Github.