Sleep

Composable parts for rendering dynamic web content like Facebook in Vue.js

.vue-content-placeholders.Vue.js plugin for providing fake web content (Facebook like). It may be valuable as a placeholder while content is filling or data getting to supply far better UX and also reduced bounce cost.You can easily utilize it as every other component (plugin) for Vue tasks. As an example:.Consumption.Setup.* using npm: 'npm put in vue-content-placeholders-- spare'.* by means of anecdote: 'anecdote include vue-content-placeholders'.Feature the plugin in your main.js documents.import Vue from 'vue'.bring in VueContentPlaceholders coming from 'vue-content-placeholders'.Vue.use( VueContentPlaceholders).A css file is consisted of when importing the package deal. You might must arrangement your bundler to embed the css in your page.In your design templates:.content-placeholders is actually the major part and within 3 forms of material can exist.
For accessible residential or commercial properties check out better listed below.
End result:.
Result:.Available elements and homes.origin.Boolean computer animated (default: true).Boolean rounded (nonpayment: false) - border distance.Boolean centered (nonpayment: inaccurate).These buildings determine exactly how all children parts will definitely behave.
Boolean img (default: incorrect).
Number lines (default: 4).That's it basically! This available resource venture is under an MIT certificate.

Articles You Can Be Interested In