React Loading

A loading skeleton component built on React.

Installation

Use the package manager npm or yarn to install React Loading

npm install @yisheng90/react-loading --save

or

yarn add react-loading

Usage

import Skeleton from '@yisheng90/react-loading';

<Skeleton/>

Width

width

    <Skeleton width={250}/>
    <Skeleton width="250px"/>
    <Skeleton width="5rem"/>

Height

width

    <Skeleton height={25} />
    <Skeleton height="25px" />
    <Skeleton height="3rem" />

Rows

width

    <Skeleton width={250} row={6} />

Circle

width

    <Skeleton width={250} circle />

GitHub