Sleep

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

.vue-content-placeholders.Vue.js plugin for rendering bogus material (Facebook like). It may be useful as a placeholder while information is loading or records retrieving to give much better UX and reduced bounce price.You can easily utilize it as any other element (plugin) for Vue tasks. For example:.Consumption.Setup.* by means of npm: 'npm put in vue-content-placeholders-- spare'.* using yarn: 'yarn add vue-content-placeholders'.Consist of the plugin in your main.js data.bring in Vue from 'vue'.bring in VueContentPlaceholders coming from 'vue-content-placeholders'.Vue.use( VueContentPlaceholders).A css documents is actually consisted of when importing the package deal. You may have to arrangement your bundler to install the css in your web page.In your templates:.content-placeholders is actually the main component as well as within 3 sorts of web content can easily exist.
For offered buildings check out additionally below.
Result:.
End result:.Offered elements as well as properties.origin.Boolean animated (nonpayment: correct).Boolean pivoted (nonpayment: incorrect) - boundary span.Boolean based (default: untrue).These properties describe just how all children parts will certainly function.
Boolean img (nonpayment: incorrect).
Variety product lines (nonpayment: 4).That's it more or less! This available resource job is actually under an MIT permit.

Articles You Can Be Interested In