Composable components for rendering fake (progressive) content like facebook in vue
JavaScript
1,569
9 commits
updated Aug 19, 2024
Vue addon for rendering fake content while data is fetching to provide better UX and lower bounce rate.

npm install vue-content-placeholders --saveyarn add vue-content-placeholdersInclude 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.
<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>

root <content-placeholders>
animated (default: true)rounded (default: false) - border radiuscentered (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 />
See the LICENSE file for license rights and limitations (MIT).
Overall
Maintained
Code review
Latest release
Releases this year
1,705 followers · starred Dec 2017
13,409 followers · starred Dec 2017
393 followers · starred May 2020
1,239 followers · starred Jan 2020
Composable components for rendering fake (progressive) content like facebook in vue
JavaScript
1,569
9 commits
updated Aug 19, 2024
Vue addon for rendering fake content while data is fetching to provide better UX and lower bounce rate.

npm install vue-content-placeholders --saveyarn add vue-content-placeholdersInclude 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.
<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>

root <content-placeholders>
animated (default: true)rounded (default: false) - border radiuscentered (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 />
See the LICENSE file for license rights and limitations (MIT).
Overall
Maintained
Code review
Latest release
Releases this year
1,705 followers · starred Dec 2017
13,409 followers · starred Dec 2017
393 followers · starred May 2020
1,239 followers · starred Jan 2020