Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-loading-skeleton-placeholders

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-loading-skeleton-placeholders

Simple, animated loading placeholders that automatically adapt to the context of your app.

  • 1.2.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

☠️ react-loading-skeleton ☠️

Simple, animated loading placeholders that automatically adapt to the context of your app.

Install

npm install react-loading-skeleton-placeholders

Basic Usage

import { Skeleton } from 'react-loading-skeleton-placeholders';

<Skeleton amount={5} />  //Simple, five line loading placeholder
<Skeleton amount={3} skull={true} />  //Circle and 3 line loading placeholder

Principles

The <Bone /> component is designed to be used directly in your components, in place of content while it is loading. Using a <Bone /> will ensure the loading state remains up-to-date with any changes to your layout or typography. The <Skeleton /> component is designed to be used as a generic placeholder for body text.

class Article extends Component {
    render() {
        return (
            <div style={{fontSize: 20, lineHeight: 2}}>
                <h1>{this.props.title || <Bone />}</h1>
                {this.props.body || <Skeleton count={10}/>}
            </div>
        );
    }
}

Spin up Dev Env

Clone this repo, install dependencies and use npm start to run project.

Docs

Dig into the dirt and get to know the Skeleton with the documentation. Component Documentation

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Todd WebDev - Initial work - GitHub

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

Keywords

FAQs

Package last updated on 26 Aug 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc