vue-blog-placeholders
Vue plugin package for a placeholder of your content to a demonstration before content loads.
Installation
- via npm:
npm install vue-blog-placeholders --save
Usage
Include plugin in your app.js
file.
Vue
A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.
Examples:
Available components and properties
-
wrap component
<content-placeholders>
- Boolean
animated
(default: true) - Boolean
rounded
(default: 10px) - border radius in px - Boolean
centered
(default: false) - String
gradient-color
(default: #ccc) - String
background-color
(default: #eee)
these properties will effect the inner components
- Boolean
-
<content-placeholders-heading />
- Boolean
img
(default: false)
- Boolean
-
<content-placeholders-text />
- Number
lines
(default: 4) - Number
thickness
(default: 15) - in px - Boolean
center
(default: false)
- Number
-
<content-placeholders-img />
- Number
height
(default: 2) - in em
- Number
-
<content-placeholders-list-item />
- Number
items
(default: 4)
- Number
License
See the LICENSE file for license rights and limitations (MIT). This package inspired by vue-content-placeholders.