1.1.2 • Published 5 years ago
react-css-shapes v1.1.2
react-css-shapes
| Easily create CSS shapes with React components, customise with props
Install
npm install --save react-css-shapes
Usage
import Shape from 'react-css-shapes
Square
<Shape square />
Props
- width
- height
- bgColor
- borderWidth
- borderStyle
- borderColor
- borderRadius
- rotate
Circle
<Shape circle />
Props
- size
- bgColor
- borderWidth
- borderStyle
- borderColor
- rotate
Triangle
<Shape triangle />
Props
- size
- bgColor
- rotate
Classes
You can pass your own class in with the className
prop.