Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ember-content-loader

concordnow3.3kMIT3.0.0

Easy, customizable skeletons screens

ember-addon, loader, fake, placeholder, progressive, skeleton, skeleton-ui

readme

ember-content-loader

Build Status Ember Observer Score This project is using Percy.io for visual regression testing.

SVG-Powered component to easily create skeleton screens / placeholder loadings (like Facebook's cards loading). Documentation can be found here

Compatibility

  • Ember.js v3.20 or above
  • Ember CLI v3.20 or above
  • Node.js v12 or above
  • ember-auto-import >= 2

Installation

ember install ember-content-loader

Usage

Facebook skeleton

Simply add the <ContentLoader> component in your code with the shapes that you want.

<ContentLoader>
  {{!-- Only SVG shapes --}}
  <rect x="70" y="15" rx="4" ry="4" width="117" height="6.4" />
  <rect x="70" y="35" rx="3" ry="3" width="85" height="6.4" />
  <rect x="0" y="80" rx="3" ry="3" width="350" height="6.4" />
  <rect x="0" y="100" rx="3" ry="3" width="380" height="6.4" />
  <rect x="0" y="120" rx="3" ry="3" width="201" height="6.4" />
  <circle cx="30" cy="30" r="30" />
</ContentLoader>

You can use the online editor to create complex shapes.

Note: This editor is made for React, so you need to translate the produced code.

Options

You can find all <ContentLoader> available options here

Thanks

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

3.0.0 - 2021-12-03

Changed

  • Bump dependencies
  • Drop ember 3.16 support

2.0.0 - 2021-09-10

Changed

  • Bump Node requirement to v12 minimum
  • Requires ember-auto-import >= 2
  • Move to glimmer components

1.0.1 - 2020-12-01

Fixed

  • Fix tag

1.0.0 - 2020-09-04

Added

  • Add a changelog

Changed

  • Apply ember-cli-update
  • Bump dependencies

Removed

  • Drop node 8 support
  • Drop ember 2.18 support
  • Drop ember 3.4 support
  • Drop ember 3.8 support
  • Remove ember polyfills

0.1.3 - 2019-10-24

Changed

  • Bump dependencies

Fixed

  • Fix CI

Removed

  • Useless doc route

0.1.2 - 2019-07-31

Changed

  • Improve CI
  • Add documentation badge

0.1.1 - 2019-07-31

Fixed

  • Fix documentation

0.1.0 - 2019-07-31

Added

  • First implementation