Composable components for rendering fake (progressive) content like facebook in vue
Last updated Jul 9, 2026
1.6k
Stars
86
Forks
13
Issues
+1
Stars/day
Attention Score
38
Language breakdown
No language data available.
โธ Files
click to expand
README
vue-content-placeholders
Vue addon for rendering fake content while data is fetching to provide better UX and lower bounce rate.

:cd: Installation
- via npm:
npm install vue-content-placeholders --save - via yarn:
yarn add vue-content-placeholders
:rocket: Usage
Include plugin in your main.js file.
import Vue from 'vue'
import VueContentPlaceholders from 'vue-content-placeholders'
Vue.use(VueContentPlaceholders)
โ ๏ธ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.
Examples:
<content-placeholders>
<content-placeholders-heading :img="true" />
<content-placeholders-text :lines="3" />
</content-placeholders>

<content-placeholders :rounded="true">
<content-placeholders-img />
<content-placeholders-heading />
</content-placeholders>

Available components and properties
- root
<content-placeholders>
animated (default: true)
* Boolean rounded (default: false) - border radius
* Boolean centered (default: false)
> these properties define how all children components will act
<content-placeholders-heading />
img (default: false)
<content-placeholders-text />
lines (default: 4)
<content-placeholders-img />
๐ License
See the LICENSE file for license rights and limitations (MIT).
๐ More in this category