value/min/max/variant API as Progress but takes up less horizontal space, making it ideal for dashboards and status panels.
Basic Usage
Sizes
Three sizes control the ring diameter:sm (64px), default (96px), and lg (128px).
Variants
Semantic variants color the filled arc to communicate meaning at a glance:Thickness
Thethickness prop controls the stroke width of the ring arc. The default is 6.
Custom Range
Setmin and max to define a range other than 0–100. The renderer normalizes the value to a percentage automatically.
Custom Center Content
Use Ring as a container to place arbitrary components in the center. When children are present, they replace thelabel text.
API Reference
Ring Parameters
Current value. Can be a template expression for dynamic binding.
Minimum value. The renderer normalizes
(value - min) / (max - min) to a 0–100 percentage.Maximum value.
Text displayed in the center of the ring. Supports template expressions. Ignored when children are present.
Arbitrary components rendered in the center of the ring, replacing the label.
Visual variant:
"default", "success", "warning", "destructive", "info", "muted".Ring diameter:
"sm" (64px), "default" (96px), "lg" (128px).Stroke width of the ring arc in pixels.
Tailwind classes for the outer container.
Protocol Reference
Ring