JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5119
  • Score
    100M100P100Q146208F
  • License MIT

Skeleton elements (aka UI Skeletons, Skeleton Screens, Ghost Elements) - UI for improved perceived performance

Package Exports

  • skeleton-elements
  • skeleton-elements/react
  • skeleton-elements/svelte
  • skeleton-elements/vue

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (skeleton-elements) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Skeleton Elements

Skeleton elements (aka UI Skeletons, Skeleton Screens, Ghost Elements) - UI for improved perceived performance

Documentation

See the documentation with examples and API documentation.

Installation

With npm:

npm i skeleton-elements --save

Styles

Skeleton Elements requires stylesheet to be included:

<link rel="stylesheet" href="path/to/skeleton-elements.css>

Wiht bunder (like webpack) you can import syles directly from JavaScript:

import 'skeleton-elements/skeleton-elements.css';

Or it can be included for each component separately:

  • skeleton-elements/skeleton-block.css - Block component
  • skeleton-elements/skeleton-text.css - Text component
  • skeleton-elements/skeleton-effects.css - Effects

SCSS

SCSS styles are also included:

  • skeleton-elements/skeleton-elements.scss - All styles
  • skeleton-elements/skeleton-block.scss - Block component
  • skeleton-elements/skeleton-text.scss - Text component
  • skeleton-elements/skeleton-effects.scss - Effects

Usage

See the documentation for more examples and API documentation.

<style>
  .user-avatar .skeleton-block {
    width: 120px;
    height: 120px;
    border-radius: 50%;
  }
</style>
<div id="app">
  ...
  <div class="user">
    <div class="user-avatar">
      <div class="skeleton-block skeleton-effect-fade"></div>
    </div>
    <div class="user-name">
      <span class="skeleton-text skeleton-effect-fade">John Doe</span>
    </div>
  </div>
  ...
</div>

Contribution

Yes please! See the contributing guidelines for details.

Licence

This project is licensed under the terms of the MIT license.