app').If you receive a mistake along with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).To describe international components for Volar type-checking you are going to need to include:.// components.d.ts.declare module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to use:.app.use( Vue3Spline, label: 'SplineAnimation')// usage in design template.label string (nonpayment: 'Vue3Spline') - specified customized element name.As an alternative you can easily additionally import the part regionally.bring in Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You may after that use the component in your theme.
Nuxt 3.This is actually still experimental. Are going to be improved soon.You can put in vue3-spline over yarn or npm. spline-runtime is a dependence of vue3-spline and also must be instantly put up when you set up vue3-spline.If you are actually using npm:.npm install vue3-spline@latest-- save.If you are using anecdote:.anecdote add vue3-spline@latest.Generate a file contacted plugins at the origin of your venture.Create a file called Vue3Spline.client.ts inside the plugins directory site.Include the following code to the Vue3Spline.client.ts report.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get an error with TS, try usage( Vue3Spline, title: "Vue3Spline" ).This should sign up as an international component that you may call anywhere in your application under the tag.I would certainly recommend making use of a moms and dad tag to make certain that the computer animation just loads in on the client side.
Github.