Radial Progress
RadialProgress displays a circular progress meter. The default slot centers text inside of the circle.
0%
10%
40%
70%
100%
Code Example
<RadialProgress value="10">
10%
</RadialProgress>Components
RadialProgress is a standalone component.
RadialProgress
Progress can be customized with the following props:
| Prop | Type | Description |
|---|---|---|
value | number | sets the progress amount default: 0 |
size | string | a CSS size value default: 4rem |
thickness | string | a CSS size value default: calc(var(--size) / 10) |
color | string | Sets the button color to one of the below prop names. |
| Â Â Â neutral | boolean | Sets the color to neutral. |
| Â Â Â primary | boolean | Sets the color to primary. |
| Â Â Â secondary | boolean | Sets the color to secondary. |
| Â Â Â accent | boolean | Sets the color to accent. |
| Â Â Â info | boolean | Sets the color to info. |
| Â Â Â success | boolean | Sets the color to success. |
| Â Â Â warning | boolean | Sets the color to warning. |
| Â Â Â error | boolean | Sets the color to error. |
Color
There are two ways of specifying color:
- The
primary,secondary,neutral,accent,info,success,warning, anderrorboolean props. - The
colorprop, which accepts a string with any of the above prop names.
Code Example
<RadialProgress primary value="40" />Size
The size prop accepts any CSS size string. The default size is 4rem
Code Example
<RadialProgress primary value="40" size="8rem" />Thickness
The thickness prop accepts any CSS size string. The default thickness is calc(var(--size) / 10)
Code Example
<RadialProgress primary value="40" thickness="calc(var(--size) / 4)" />Other Styling
Use utility classes to add borders, backrounds, etc.
Code Example
<RadialProgress value="60" class="border-4 bg-primary border-primary" />