Put CircularProgressIndicator in CircularProgressTrack. Put text inside the ring only at lg and xl.
profile-ring.tsx
CircularProgress
<div>| Prop | Type | Default | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| size | "default""lg""sm""xl""xs" | "default" | |||||||||||||||||||||||||||||||
| variant | "full""half" | "full" | |||||||||||||||||||||||||||||||
| class | string | — | |||||||||||||||||||||||||||||||
| ink | "default""destructive""foreground""inverse""muted""success""warning" | "default" | default: the primary fill on a foreground 10% track. inverse: for a ring on a solid primary fill (a Stop button): primary-foreground on primary-foreground at 25%. It changes the strokes only: a CircularProgressValue keeps its foreground text, so color it yourself when you show a value on the fill. muted: a muted-foreground fill, for a ring that only counts (a countdown). warning: a warning fill, for a time that is nearly up. The fill color fades on the fade clock between muted and warning. foreground, success, destructive: a fill that tells the status of a to-do list. | ||||||||||||||||||||||||||||||
| animated | boolean | true | Move the arc and count the value text to each new value (useShareSpring), so a value that ticks reads as one motion. false jumps to each value. Default true. | ||||||||||||||||||||||||||||||
| glow | boolean | — | A soft halo in the fill color (glow, @gelatin-ui/glow). Default: false. | ||||||||||||||||||||||||||||||
| segments | number | — | Cut the ring into this many arcs that fill one by one. Unset: one solid ring. | ||||||||||||||||||||||||||||||
From Base UIProgress.RootBase UI docs | |||||||||||||||||||||||||||||||||
| aria-valuetext | string | — | A string value that provides a user-friendly name for aria-valuenow, the current value of the progress bar. | ||||||||||||||||||||||||||||||
| format | NumberFormatOptions | — | Options to format the value. | ||||||||||||||||||||||||||||||
| get | — | Accepts a function which returns a string value that provides a human-readable text alternative for the current value of the progress bar. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | ||||||||||||||||||||||||||||||
CircularProgressTrack
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
CircularProgressIndicator
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
CircularProgressValue
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
From Base UIProgress.ValueBase UI docs | |||
| children | — | ||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
CircularProgressLabel
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |





