I am on a mission to create a circular progress indicator.
Recently, I stumbled upon the daisyui library and its component called radial progress
-
The documentation mentions that: "Radial progress requires the use of the --value CSS variable."
I attempted to implement this as follows:
<div className="radial-progress" style={{ "--value": 70 }}>
70%
</div>
Unfortunately, it does not seem to be working. Am I missing something?
This is the desired outcome:
https://i.sstatic.net/pVGCm.png
You can also view the code on Codesandbox here: https://codesandbox.io/s/react-tailwind-playground-forked-9jwc49?file=/src/App.tsx