Skip to main content

Component <SemicircleBar />

Props

PropsTypeMeaningPossible values
barPercentnumberSet bar prorgessfrom 0 to 100
markPercentnumberSet mark on the barfrom 0 to 100
sizenumberSet size of whole barfrom 0 to any number
typestringChange line to dashesdashed / solid
progressstringProgress textAny string
valuestringValue of the bar textAny stirng
unitsstringUnits textAny stirng



Variants

Examples:

<SemicircleBar barPercent={20} value="20" />
<SemicircleBar barPercent={60} value="60" />
<SemicircleBar barPercent={90} value="90" />
20
60
90



Sizes

Examples:

<SemicircleBar size={180} barPercent={20} value="20" />
<SemicircleBar size={320} barPercent={60} value="60" />
<SemicircleBar size={480} barPercent={90} value="90" />
20
60
90



Type

Examples:

<SemicircleBar barPercent={20} value="20" type="solid" />
<SemicircleBar barPercent={70} value="70" type="dashed" />
20
70



Text variants

Examples:

<SemicircleBar barPercent={20} />
<SemicircleBar barPercent={45} value="45" />
<SemicircleBar barPercent={65} value="65" units="Happines" />
<SemicircleBar barPercent={90} progress="+10 pts" value="90" units="Happines" />
45
65Happines
+10 pts90Happines



With mark

Examples:

<SemicircleBar barPercent={20} markPercent={80} value="20" />
<SemicircleBar barPercent={60} markPercent={20} value="60" />
<SemicircleBar barPercent={90} markPercent={50} value="90" />
20
60
90