Skip to content

Commit e327510

Browse files
committed
Updated README.md
1 parent e3610ce commit e327510

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

README.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,30 @@ import SkewedContainer from 'sc-react';
1717
### Example
1818
```
1919
export default class extends React.Component{
20-
render(){
21-
return(
22-
<SkewedContainer>
23-
Your code here
24-
</SkewedContainer>
25-
)
26-
}
20+
render(){
21+
return(
22+
<div>
23+
<SkewedContainer
24+
top="left || right"
25+
bottom="left || right"
26+
bgColor="blue"
27+
>
28+
{/* YOUR CODE HERE */}
29+
</SkewedContainer>
30+
</div>
31+
)
32+
}
2733
}
2834
```
2935

3036
### Properties
3137
```
32-
SkewedContainer.PropTypes = {
38+
SkewedContainer.propTypes = {
3339
className: PropTypes.string,
34-
style: PropTypes.array,
35-
topLeft: PropTypes.bool,
36-
topRight: PropTypes.bool,
37-
bottomLeft: PropTypes.bool,
38-
bottomRight: Proptypes.bool,
39-
image: PropTypes.any,
40+
style: PropTypes.object,
41+
top: PropTypes.string,
42+
bottom: PropTypes.string,
43+
noMargin : PropTypes.bool,
4044
bgColor: PropTypes.string
4145
}
4246
```

0 commit comments

Comments
 (0)