Circular Progress API
View componentThe full prop reference for the Circular Progress component. A circular progress indicator with determinate and indeterminate modes.
Import
import { CircularProgress } from '@structyl/styled';Props
CircularProgress
A circular SVG progress indicator that displays progress as a circular arc, supporting both determinate and indeterminate (spinning) states.
| Prop | Type | Default |
|---|---|---|
| value# | number | null | undefinedCurrent progress value (0 to max). Omit or pass null/undefined for indeterminate spinning state. | undefined |
| max# | numberMaximum progress value; progress is calculated as value/max. | 100 |
| size# | numberWidth and height of the SVG element in pixels. | 40 |
| strokeWidth# | numberWidth of the progress stroke in pixels. | 4 |
| label# | stringAria-label text to announce the progress to screen readers. | 'Loading' |
| color# | 'primary' | 'secondary' | 'error' | 'warning' | 'info' | 'success' | 'inherit'Color variant; maps to Tailwind text color classes (e.g. text-primary, text-destructive). | 'primary' |
| className# | string | undefinedAdditional CSS classes merged with internal classes. | — |
| ...SVGAttributes# | React.SVGAttributes<SVGSVGElement>All standard SVG element attributes (e.g. aria-*, data-*, style, id, etc.) are supported via spread. | — |
Source code
If you didn't find what you need here, read the component implementation .