app').If you receive an inaccuracy along with TS, attempt usage( Vue3Spline, title: "Vue3Spline" ).To specify worldwide components for Volar type-checking you will need to have to include:.// components.d.ts.state component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to use:.app.use( Vue3Spline, name: 'SplineAnimation')// make use of in template.name cord (nonpayment: 'Vue3Spline') - prepared custom component label.Additionally you can also import the component locally.bring in Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can easily then use the part in your design template.
Nuxt 3.This is still experimental. Will certainly be upgraded very soon.You may put in vue3-spline over anecdote or even npm. spline-runtime is actually a reliance of vue3-spline and also should be immediately installed when you install vue3-spline.If you are actually making use of npm:.npm mount vue3-spline@latest-- save.If you are actually utilizing yarn:.anecdote incorporate vue3-spline@latest.Develop a folder called plugins at the origin of your task.Create a file named Vue3Spline.client.ts inside the plugins directory.Include the complying with code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an inaccuracy with TS, try make use of( Vue3Spline, title: "Vue3Spline" ).This should register as an international component that you may refer to as anywhere in your application under the tag.I would certainly highly recommend using a moms and dad tag to make certain that the animation only lots with it the customer edge.
Github.