1.0.2 • Published 5 years ago

react-content-loading v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

react-content-loading

TravisCI codecov

A loading component

Install

$ yarn add react-content-loading

Example

npm.io

import { ContentLoading } from 'react-content-loading'

() => {
  return (
    <div>
      <div style={{ height: 50, width: 400, display: 'flex', flexDirection: 'row', alignItems: 'end', justifyContent: 'space-between' }}>
        <div style={{ display: 'flex' }}>
          <ContentLoading height="50px" width="50px" />
        </div>
        <div style={{ display: 'flex', flexDirection: 'column' }}>
          <div style={{ paddingTop: 4 }}>
            <ContentLoading height="15px" width="340px" />
          </div>
          <div style={{ paddingTop: 4 }}>
            <ContentLoading height="15px" width="340px" />
          </div>
        </div>
      </div>
      <div style={{ paddingTop: 8 }}>
        <ContentLoading height="20px" width="400px" />
      </div>
      <div style={{ paddingTop: 4 }}>
        <ContentLoading height="20px" width="400px" />
      </div>
      <div style={{ paddingTop: 4 }}>
        <ContentLoading height="20px" width="400px" />
      </div>
      <div style={{ paddingTop: 4 }}>
        <ContentLoading height="20px" width="400px" />
      </div>
    </div>
  )
}