mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-04-01 22:41:23 +08:00
ebcdcd1d5f76d10e2ee042cbcb53d5e1ee422e44
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 |
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%