https://github.com/peteroid/react-pentagon
A simple react add-on to help drawing the svg pentagon.
https://github.com/peteroid/react-pentagon
Last synced: about 1 year ago
JSON representation
A simple react add-on to help drawing the svg pentagon.
- Host: GitHub
- URL: https://github.com/peteroid/react-pentagon
- Owner: peteroid
- Created: 2016-08-01T01:50:12.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-04T09:49:48.000Z (almost 10 years ago)
- Last Synced: 2025-06-12T01:04:35.452Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://peteroid.github.io/react-pentagon/
- Size: 180 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deprecated
Refer to new repo: [https://github.com/peteroid/react-polygon](https://github.com/peteroid/react-polygon)
# react-pentagon
A simple react add-on to help drawing the svg pentagon.
# Demo
[https://peteroid.github.io/react-pentagon/](https://peteroid.github.io/react-pentagon/)
# Usage
```javascript
npm install react-pentagon --save
```
```javascript
var Pentagon = require('react-pentagon')
// add this to your components
```
# Build your own
```javascript
npm install
npm run webpack
```
# Props
name : propType = defaultValue
## Basic
- size : number = 50
- fill : string = "#ad893e"
- ratio : [number] = [1, 1, 1, 1, 1]
## Animation
- isAnimating : bool = true
- duration : number = 1000