mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-03-30 23:22:36 +08:00
f0b7f5bed86c609dbcd05ea286ea945b4f32d226
React Content Loader
This project is a collection the loader based on styles cards on Facebook.
Usage:
First install the dependency:
npm i react-content-loader --save-dev
After import and use:
// import the component
import ContentLoader from 'react-content-loader'
const MyPage = () => (<ContentLoader />);
Options
| Name | Type | Default | Description |
|---|---|---|---|
| style | Object | ||
| type | String | facebook |
Options: facebook, instagram |
| speed | Number | 2 |
Animation speed |
| primaryColor | String | #f3f3f3 |
Background the SVG |
| secondaryColor | String | #ecebeb |
Animation color |
Facebook Style
Instagram Style
Todo
- Code component;
- List component;
- Test in multiples browser;
- A more useful new project;
Credits
Boilerplate for creating React Npm packages with ES2015
License
MIT
Languages
TypeScript
89.2%
JavaScript
10.8%

