mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-04-02 17:47:17 +08:00
cfa6d4cd6d1e320f100e082d522b0d3d191ada2b
React Content Loader
This project is a collection the loader basead in styles cards on Facebook.
Usage:
First install the dependencie
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 |
Default style for component |
| speed | Number | 2 |
Speed for animaiton |
| primaryColor | String | #f3f3f3 |
Background the SVG |
| secundaryColor | String | ecebeb |
Color of animation |
Todo
- Code component;
- List component;
- Test in several browser;
- Better documentation;
- A more useful new project;
Credits
Boilerplate for creating React Npm packages with ES2015
License
MIT
Languages
TypeScript
89.2%
JavaScript
10.8%