#How can I create sections in RingProgress with a gradient?

4 messages · Page 1 of 1 (latest)

night surge
#

<RingProgress
label={
<div className='text-center text-sm font-medium leading-snug text-black'>{${percentage}%}</div>
}
rootColor='#E0E3E7'
size={68}
thickness={5}
roundCaps
sections={[{ value: percentage, color: 'url(#gradient)' }]}
sx={{
label: { top: '54%' },
'circle:nth-of-type(2)': {
stroke: 'linear-gradient(to bottom, #FC9D00, #FBCC1D)',
},
}}
/>
It's not working for me)

elder dagger
night surge
elder dagger