--- title: CircleProgress description: "`CircleProgress`は、進行状況を円形のプログレスバーで表示するコンポーネントです。" 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 ``` ## 使い方 ```tsx import { CircleProgress } from "@yamada-ui/react" ``` ```tsx import { CircleProgress } from "@/components/ui" ``` ```tsx import { CircleProgress } from "@workspaces/ui" ``` ```tsx ``` ### バリアントを変更する ```tsx {(variant, index) => ( )} ``` ### サイズを変更する ```tsx {(size, index) => ( )} ``` または、`boxSize`に文字列もしくは数値を設定します。 ```tsx ``` ### カラースキームを変更する ```tsx {(colorScheme, index) => ( )} ``` ### 形を変更する ```tsx {(shape, index) => ( )} ``` ### アニメーションを適応する `value`を`null`に設定すると、アニメーションが適応されます。 ```tsx ``` ### アニメーションの間隔を変更する `duration`に数値を設定します。 ```tsx ``` ### 太さを変更する 太さを変更する場合は、`thickness`に文字列または数値を設定します。 ```tsx ``` ### ラベルを追加する ```tsx 75% ``` ### 色を変更する ```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. | ## アクセシビリティ 現在、v2の移行に伴い、このセクションは更新中です。