skeleton-loader-vue is a simple, customizable skeleton loader component designed for Vue.js applications to enhance user experience by displaying placeholder content while data is being fetched. Currently at version 1.0.10, this library is specifically built for Vue 2.x environments (peer dependency `vue: ^2.6.11`). It provides configurable shapes (rectangle, circle), dimensions, animations (wave, fade, pulse), and colors. Its release cadence is no longer active, as it has not seen updates in several years. Key differentiators include its ease of use and direct integration into Vue 2 component structures for displaying progressive loading states.
npm install skeleton-loader-vueVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to integrate `skeleton-loader-vue` into a Vue component to display a user profile loading state, using circle and rectangle types with custom dimensions and animations.
For Vue 3 projects, consider using a different skeleton loader library that officially supports Vue 3, or migrate your project to Vue 2 if this specific library is critical.
Evaluate the risk of using an unmaintained library. For new projects or critical applications, consider alternatives with active development. For existing projects, be aware that you may need to fork and maintain it yourself for any issues.
Verify that `import VueSkeletonLoader from 'skeleton-loader-vue';` and then `Vue.component('vue-skeleton-loader', VueSkeletonLoader);` (for global) or `components: { VueSkeletonLoader }` (for local) is correctly implemented.Ensure you have either `Vue.component('vue-skeleton-loader', VueSkeletonLoader);` in your main.js or `components: { VueSkeletonLoader }` in the script section of your .vue file.Use prop binding syntax: `:width="200"` instead of `width="200"`. Although `width` and `height` accept strings, for numeric values or dynamic binding, the colon is essential.
This specific package is for Vue 2. If you are on Vue 3, you must use a different skeleton loader. If you are on Vue 2, ensure your build setup correctly resolves the package's main file.