Sleep

Composable elements for rendering modern content like Facebook in Vue.js

.vue-content-placeholders.Vue.js plugin for providing fake content (Facebook like). It may be useful as a placeholder while web content is actually loading or data bring to deliver much better UX and lesser bounce fee.You may use it as any other component (plugin) for Vue ventures. For example:.Use.Installment.* by means of npm: 'npm set up vue-content-placeholders-- save'.* by means of yarn: 'anecdote include vue-content-placeholders'.Include the plugin in your main.js report.bring in Vue from 'vue'.bring in VueContentPlaceholders from 'vue-content-placeholders'.Vue.use( VueContentPlaceholders).A css documents is actually included when importing the deal. You may have to arrangement your bundler to embed the css in your webpage.In your layouts:.content-placeholders is the major component and within 3 types of information may exist.
For on call residential or commercial properties look even further listed below.
Outcome:.
Result:.Accessible parts as well as properties.origin.Boolean cartoon (nonpayment: accurate).Boolean rounded (default: misleading) - boundary span.Boolean centered (default: misleading).These residential or commercial properties specify exactly how all kids parts will definitely behave.
Boolean img (default: incorrect).
Number product lines (default: 4).That's it basically! This open resource job is actually under an MIT permit.

Articles You Can Be Interested In