Skip to content

Commit e3610ce

Browse files
committed
Init Commit
0 parents  commit e3610ce

File tree

9 files changed

+11961
-0
lines changed

9 files changed

+11961
-0
lines changed

.babelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": ["env"],
3+
"plugins": [
4+
"transform-object-rest-spread",
5+
"transform-react-jsx"
6+
]
7+
}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
build
3+
node_modules
4+
*.log

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Skewed container react (sc-react)
2+
A react library for creating non-rectangular/slanted container divs.
3+
4+
### Installation
5+
```
6+
npm install --save sc-react
7+
```
8+
or
9+
```
10+
yarn add sc-react
11+
```
12+
13+
### Adding sc-react
14+
```
15+
import SkewedContainer from 'sc-react';
16+
```
17+
### Example
18+
```
19+
export default class extends React.Component{
20+
render(){
21+
return(
22+
<SkewedContainer>
23+
Your code here
24+
</SkewedContainer>
25+
)
26+
}
27+
}
28+
```
29+
30+
### Properties
31+
```
32+
SkewedContainer.PropTypes = {
33+
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+
bgColor: PropTypes.string
41+
}
42+
```

0 commit comments

Comments
 (0)