app').If you get an inaccuracy with TS, make an effort make use of( Vue3Spline, title: "Vue3Spline" ).To define global components for Volar type-checking you will definitely require to add:.// components.d.ts.announce component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in design template.name strand (default: 'Vue3Spline') - prepared custom-made element label.Conversely you may also import the component in your area.bring in Vue3Spline coming from 'vue3-spline'.export default elements: Vue3Spline,.,.You can then make use of the element in your design template.
Nuxt 3.This is still experimental. Will definitely be actually updated very soon.You can install vue3-spline over yarn or npm. spline-runtime is a reliance of vue3-spline and ought to be actually automatically mounted when you mount vue3-spline.If you are utilizing npm:.npm install vue3-spline@latest-- spare.If you are utilizing yarn:.anecdote include vue3-spline@latest.Make a file gotten in touch with plugins at the root of your job.Develop a file called Vue3Spline.client.ts inside the plugins directory.Include the complying with code to the Vue3Spline.client.ts report.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get an error along with TS, try use( Vue3Spline, name: "Vue3Spline" ).This should sign up as a worldwide element that you may name anywhere in your application under the tag.I will suggest utilizing a moms and dad tag to guarantee that the animation only lots with it the customer edge.
Github.