Sleep

Composable parts for providing modern web content like Facebook in Vue.js

.vue-content-placeholders.Vue.js plugin for making fake material (Facebook like). It could be useful as a placeholder while content is actually packing or even information getting to offer much better UX as well as reduced bounce fee.You can easily use it as some other component (plugin) for Vue jobs. As an example:.Usage.Setup.* via npm: 'npm put up vue-content-placeholders-- spare'.* through anecdote: 'yarn add vue-content-placeholders'.Include the plugin in your main.js file.bring in Vue from 'vue'.bring in VueContentPlaceholders coming from 'vue-content-placeholders'.Vue.use( VueContentPlaceholders).A css report is actually included when importing the package. You might need to system your bundler to install the css in your webpage.In your layouts:.content-placeholders is the major component and also within 3 kinds of material can exist.
For on call residential or commercial properties look better below.
End result:.
Result:.Available elements and buildings.root.Boolean cartoon (default: accurate).Boolean rounded (nonpayment: false) - boundary span.Boolean based (default: inaccurate).These properties define how all youngsters components will definitely behave.
Boolean img (default: misleading).
Variety series (nonpayment: 4).That's it essentially! This available resource job is under an MIT certificate.

Articles You Can Be Interested In