Socket
Socket
Sign inDemoInstall

skeleton-elements

Package Overview
Dependencies
5
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    skeleton-elements

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


Version published
Weekly downloads
3.6K
increased by9.24%
Maintainers
1
Install size
230 kB
Created
Weekly downloads
 

Changelog

Source

4.0.1 (2022-10-12)

Features

  • add direct CSS bundle export (19a6b36)

Readme

Source

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" />

With bundler (like webpack) you can import styles directly from JavaScript:

import 'skeleton-elements/css';

Or it can be included for each component separately:

  • skeleton-elements/css - All styles
  • skeleton-elements/css/core - Core styles
  • skeleton-elements/css/block - Block component
  • skeleton-elements/css/text - Text component
  • skeleton-elements/css/image - Image component
  • skeleton-elements/css/avatar - Avatar component
  • skeleton-elements/css/effects - Effects

SCSS

SCSS styles are also included:

  • skeleton-elements/scss - All styles
  • skeleton-elements/scss/core - Core styles
  • skeleton-elements/scss/block - Block component
  • skeleton-elements/scss/text - Text component
  • skeleton-elements/scss/image - Image component
  • skeleton-elements/scss/avatar - Avatar component
  • skeleton-elements/scss/effects - 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.

Keywords

FAQs

Last updated on 12 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc