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 & DescriptionOption(s)Default
React children prop.
| ReactNode
| ((
props: any,
) => ReactNode)
The component used for the root node. It can be a React component or element.
| ElementType
| ComponentType
'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.
number
The maximum allowed value of the progress bar.
number
The minimum allowed value of the progress bar.
number
Callback fired when the value changes.
    (
    value: number | object,
    ) => void
    The width and height of the progress circle. Supply as a number for fine-grained customization.
    | 'sm'
    | 'md'
    | 'lg'
    | number
    'md'
    
    The current value of the progress bar.
    number
    Type
    | ReactNode
    | ((
    props: any,
    ) => ReactNode)
    Description
    React children prop.
    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.