Skip to content

Commit 25e3842

Browse files
committed
Added new components and update version
1 parent 8537af8 commit 25e3842

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const MyLoader = () => {
5050
| Name | Type | Default | Description |
5151
|---|---|---|---|
5252
| style | _Object_ | `null` | Ex: `{ marginTop: '50px' }` |
53-
| type | _String_ | `facebook` | Options: `facebook`, `instagram`, `list`, `code` |
53+
| type | _String_ | `facebook` | Options: `facebook`, `instagram`, `list`, `bullet-list`, `code` |
5454
| speed | _Number_ | `2` | Animation speed |
5555
| width | _Number_ | `400` | Width component |
5656
| height | _Number_ | `130` | Height component |
@@ -80,16 +80,12 @@ const MyLoader = () => {
8080
#### List Style
8181
![List Style](https://user-images.githubusercontent.com/2671660/27986068-7a0040d6-63f9-11e7-8e54-dcb220e42fd7.gif)
8282

83+
#### Bullet list Style
84+
![Bullet list Style](https://user-images.githubusercontent.com/4838076/31998372-59817bac-b96e-11e7-8ef8-07f61670ee18.gif)
8385

8486
#### Custom Style
8587
![Code Style](https://cloud.githubusercontent.com/assets/4838076/22760218/aa619f32-ee3c-11e6-9cd1-c4af9dd1278e.gif)
8688

87-
### Todo
88-
- [x] Code component;
89-
- [x] Custom elements;
90-
- [x] List component;
91-
- [ ] React Native
92-
9389
#### Credits
9490

9591
[Boilerplate for creating React Npm packages with ES2015](https://github.com/juliancwirko/react-npm-boilerplate)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-content-loader",
3-
"version": "1.4.2",
3+
"version": "1.5.0",
44
"description":
55
"This project is a collection the loader based on styles cards on Facebook, make with SVG and React.",
66
"repository": {

src/stylized/BulletListStyle.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
//@flow
22
import * as React from 'react'
33
import Wrap from '../Wrap'
4-
import type { WrapProps } from '../Wrap';
4+
import type { WrapProps } from '../Wrap'
55

66
const BulletListStyle = (props: WrapProps): React.Element<*> => {
77
return (
88
<Wrap {...props}>
9-
<circle cx="10" cy="20" r="8" /><rect x="25" y="15" rx="5" ry="5" width="220" height="10" />
10-
<circle cx="10" cy="50" r="8" /><rect x="25" y="45" rx="5" ry="5" width="220" height="10" />
11-
<circle cx="10" cy="80" r="8" /><rect x="25" y="75" rx="5" ry="5" width="220" height="10" />
12-
<circle cx="10" cy="110" r="8" /><rect x="25" y="105" rx="5" ry="5" width="220" height="10" />
9+
<circle cx="10" cy="20" r="8" />
10+
<rect x="25" y="15" rx="5" ry="5" width="220" height="10" />
11+
<circle cx="10" cy="50" r="8" />
12+
<rect x="25" y="45" rx="5" ry="5" width="220" height="10" />
13+
<circle cx="10" cy="80" r="8" />
14+
<rect x="25" y="75" rx="5" ry="5" width="220" height="10" />
15+
<circle cx="10" cy="110" r="8" />
16+
<rect x="25" y="105" rx="5" ry="5" width="220" height="10" />
1317
</Wrap>
1418
)
1519
}

0 commit comments

Comments
 (0)