Progress Circle
import {ProgressCircle} from "@qui/react-vscode"
Examples
Showcase
Dark Modern
import type {ReactElement} from "react"import {ProgressCircle} from "@qui/react-vscode"export default function Showcase(): ReactElement {return (<ProgressCircle.Root><ProgressCircle.Circle /></ProgressCircle.Root>)}
Label
Dark Modern
50%
import type {ReactElement} from "react"import {ProgressCircle} from "@qui/react-vscode"export default function Label(): ReactElement {return (<ProgressCircle.Root defaultValue={50} size="lg">{({valuePercent}) => (<><ProgressCircle.Label>{valuePercent}</ProgressCircle.Label><ProgressCircle.Circle /></>)}</ProgressCircle.Root>)}
API
ProgressCircleRootProps
| Name & Description | Option(s) | Default |
|---|---|---|
| ||
The component used for the root node. It can be a React component or
element. |
| 'div' |
The initial value of the progress when it is first rendered. Use when you do
not need to control the state of the progress. |
| |
The maximum allowed value of the progress bar. |
| |
The minimum allowed value of the progress bar. |
| |
Callback fired when the value changes. |
| |
The width and height of the progress circle. Supply as a number for
fine-grained customization. |
| 'md' |
The current value of the progress bar. |
|
Type
| ElementType| ComponentType
Default
'div'
Description
The component used for the root node. It can be a React component or
element.
Type
number
Description
The initial value of the progress when it is first rendered. Use when you do
not need to control the state of the progress.
Type
number
Description
The maximum allowed value of the progress bar.
Type
number
Description
The minimum allowed value of the progress bar.
Type
(value: number | object,) => void
Description
Callback fired when the value changes.
Type
| 'sm'| 'md'| 'lg'| number
Default
'md'
Description
The width and height of the progress circle. Supply as a number for
fine-grained customization.
Type
number
Description
The current value of the progress bar.