ember-content-placeholders
Ember addon for rendering fake content while data is fetching to provide better UX and lower bounce rate.
:cd: Installation
ember install ember-content-placeholders
:rocket: Usage
{{#content-placeholders as |placeholder|}}
{{placeholder.heading img=true}}
{{placeholder.text lines="3"}}
{{/content-placeholders}}
{{#content-placeholders rounded=true as |placeholder|}}
{{placeholder.img}}
{{placeholder.heading}}
{{/content-placeholders}}
Available components and properties
TO DO:
placeholder.list
placeholder.chart
placeholder.table
Customization
Composable components make it easy to form a required module, but sometimes it's not enough. If you'd like to also amend styling, there are few variables that can help you out:
$ember-content-placeholders-primary-color
- heading background$ember-content-placeholders-secondary-color
- light background$ember-content-placeholders-border-radius
- border radius size when rounded
property is true
$ember-content-placeholders-line-height
- single line height$ember-content-placeholders-spacing
- distance between lines
🔓 License
See the LICENSE file for license rights and limitations (MIT).