Back to Shark UI

Circular Progress

docs/components/circular-progress

latest6.4 KB
Original Source

Sections

Components

Utilities

Forms

Hooks

Circular Progress

Shows task progress with a circular indicator.

DocsAPI

PreviewCode

Installation#

CLIManual

pnpmbunnpmyarn

pnpm dlx shadcn@latest add @shark/circular-progress

Usage#

import { CircularProgress } from "@/components/ui/circular-progress";
<CircularProgress value={66} />

Controlled#

PreviewCode

Examples#

With value#

PreviewCode

66%

Indeterminate#

PreviewCode

Establishing connection...

Custom Size#

Use the size prop to change the circular progress indicator size.

PreviewCode

Custom Thickness#

Use the thickness prop to control the ring stroke width.

PreviewCode

API Reference#

CircularProgress#

Root element of the circular progress indicator.

PropTypeDefault
value`numbernull`
defaultValuenumber-
onValueChange(details: ValueChangeDetails) => void-
indeterminatebooleanfalse
sizenumber32
thicknessnumber4
classNamestring-

CircularProgressValue#

Displays the current progress value text.

PropTypeDefault
classNamestring-

For a complete list of props, see the Ark UI documentation.

[

Previous page

Checkbox ](/docs/components/checkbox)[

Next page

Circular Slider ](/docs/components/circular-slider)

On This Page

InstallationUsageControlledExamplesWith valueIndeterminateCustom SizeCustom ThicknessAPI ReferenceCircularProgressCircularProgressValue