File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -17,26 +17,30 @@ import SkewedContainer from 'sc-react';
17
17
### Example
18
18
```
19
19
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
+ }
27
33
}
28
34
```
29
35
30
36
### Properties
31
37
```
32
- SkewedContainer.PropTypes = {
38
+ SkewedContainer.propTypes = {
33
39
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,
40
44
bgColor: PropTypes.string
41
45
}
42
46
```
You can’t perform that action at this time.
0 commit comments