A simple dynamic skeleton component for Vue.js applications.
2.X
With NPM
npm install @neiwad/vue-skeleton
With YARN
yarn add @neiwad/vue-skeleton
In your main.js
import Skeleton from "@neiwad/vue-skeleton"
Vue.component(Skeleton, Skeleton)
In your view / component
<script>
import Skeleton from "@neiwad/vue-skeleton"
export default {
components: {
Skeleton
}
};
</script>
<Skeleton width="50%" height="80%" />
<Skeleton width="100px" height="45px" borderRadius="40px" color="#f4f5f6" />
Name | Type | Default |
---|---|---|
Color | String | #E0E0E0 |
Width | String | 100 |
Height | String | 100 |
Rounded | Boolean | false |
BorderRadius | String | 8 |
- Width and Height without px or % are set with px by default.
- Rounded overwrites BorderRadius.
- Add multiple animations
- Create a Vue3 version
Feel free to submit an issue here