1.0.0 • Published 4 years ago

react-hexagonal-progressbar v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

React Hexagonal Progressbar

It is a simple Hexagobal progress component created for react based only on SVG graphics and has various of options to customize it.

Alt text

Install

npm install react-hexagonal-progressbar

or

yarn add react-hexagonal-progressbar

Sample

<HexagonalProgressbar
    value={80}
    lineCap="line|round"
    color="#00FF00"
    level={5}
    location="rightTop|rightBottom|leftBottom|leftTop"
/>

props

PropsTypeDefaultDescription
valuenumber0Number of percent you want to show
badgeImganynullicon inside your badge, png, svg, ...
disabledboolfalseto disable you badge
colorstringredcolor hexa, string or rgb
levelnumbernulloptional props to display the current level
lineCapstirngroundoptions: line, round
locationstringrightTopoptions:rightTop, rightBottom, leftBottom, leftTop