--- title: CircleProgress description: "`CircleProgress` is a component that displays progress in a circular progress bar." links: - style: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/circle-progress/circle-progress.style.ts - source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/circle-progress - storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-circleprogress--basic --- ```tsx ``` ## Usage ```tsx import { CircleProgress } from "@yamada-ui/react" ``` ```tsx import { CircleProgress } from "@/components/ui" ``` ```tsx import { CircleProgress } from "@workspaces/ui" ``` ```tsx ``` ### Change Variant ```tsx {(variant, index) => ( )} ``` ### Change Size ```tsx {(size, index) => ( )} ``` Alternatively, set a string or number to `boxSize`. ```tsx ``` ### Change Color Scheme ```tsx {(colorScheme, index) => ( )} ``` ### Change Shape ```tsx {(shape, index) => ( )} ``` ### Apply Animation Setting `value` to `null` will apply animation. ```tsx ``` ### Change Animation Duration Set a number to `duration`. ```tsx ``` ### Change Thickness To change the thickness of the progress bar, set a string or number to `thickness`. ```tsx ``` ### Add Label ```tsx 75% ``` ### Change Color ```tsx ``` ## Props ### CircleProgress.Root | Prop | Default | Type | Description | | ------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `as` | - | `As` | The HTML element to render. | | `asChild` | - | `boolean` | Merges its props onto its immediate child. | | `css` | - | `CSSObject \| CSSObject[]` | The CSS object. | | `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. | | `size` | `"md"` | `"lg" \| "md" \| "sm" \| "xl" \| "xs"` | The size of the component. | | `variant` | `"outline"` | `"outline" \| "subtle"` | The variant of the component. | | `circleProps` | - | `CircleProgressCircleProps` | Props for the progress circle element. | | `duration` | - | `number \| string` | The animation duration in seconds. | | `max` | `100` | `number` | The maximum value of the progress. | | `min` | `0` | `number` | The minimum value of the progress. | | `rangeColor` | - | `"-moz-initial" \| "ActiveBorder" \| "ActiveCaption" \| "aliceblue" \| "amber.100" \| "amber.200" \| "amber.300" \| "amber.400" \| "amber.50" \| "amber.500" ...` | The color of the progress range. | | `rangeProps` | - | `CircleProgressRangeProps` | Props for the progress range element. | | `shape` | `"rounded"` | `"rounded" \| "square"` | The shape of the progress bar. | | `thickness` | - | `"-moz-fit-content" \| "-moz-initial" \| "-moz-max-content" \| "-moz-min-content" \| "-webkit-fit-content" \| "-webkit-max-content" \| "0.5" \| "1.5" \| "1" \| "1/12" ...` | The thickness of the progress bar. | | `trackColor` | - | `"-moz-initial" \| "ActiveBorder" \| "ActiveCaption" \| "aliceblue" \| "amber.100" \| "amber.200" \| "amber.300" \| "amber.400" \| "amber.50" \| "amber.500" ...` | The color of the progress track. | | `trackProps` | - | `CircleProgressTrackProps` | Props for the progress track element. | | `value` | `0` | `null \| number` | The value of the progress. If `null`, the progress will be indeterminate. | ### CircleProgress.Label | Prop | Default | Type | Description | | ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | | `as` | - | `As` | The HTML element to render. | | `asChild` | - | `boolean` | Merges its props onto its immediate child. | | `css` | - | `CSSObject \| CSSObject[]` | The CSS object. | | `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. | ## Accessibility Currently, this section is being updated due to the migration of v2.