RingProgress
Give user feedback for status of the task with circle diagram
Import
Source
Docs
Package
Usage
Set sections
prop to an array of:
value
– number between 0 and 100 – amount of space filled by segmentcolor
– segment color from theme
Application data usage
<RingProgresslabel={<Text size="xs" align="center">Application data usage</Text>}sections={[{ value: 40, color: 'cyan' },{ value: 15, color: 'orange' },{ value: 15, color: 'grape' },]}/>
Size and thickness
Use size
and thickness
props to configure RingProgress, all values are in px:
<RingProgresssize={120}thickness={12}sections={[{ value: 40, color: 'cyan' },{ value: 15, color: 'orange' },{ value: 15, color: 'grape' },]}/>
Customize label
You can add any React node as label, e.g. Text component with some additional styles or ThemeIcon:
40%
<RingProgresssections={[{ value: 40, color: 'blue' }]}label={<Text color="blue" weight={700} align="center" size="xl">40%</Text>}/><RingProgresssections={[{ value: 100, color: 'teal' }]}label={<Center><ThemeIcon color="teal" variant="light" radius="xl size="xl"><CheckIcon style={{ height: 22, width: 22 }} /></ThemeIcon></Center>}/>
Built by Vitaly Rtishchev and these awesome people